CodeCharge Studio
search Register Login  

Visual Web Reporting

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> ASP

 how to output data to xml format in separate file

Print topic Send  topic

Author Message
muhd fauzi
Posted: 11/23/2004, 9:43 PM

I am using third party graph tool. The input to the flash component is a xml file which is separated from the asp file generated.
I know from ccs grid all the output is in the asp file and if the td/tr is removed then it is not displayed. My question is how do I direct the grid output input xml file so that my flash graph component can read it

thanks
peterr


Posts: 5971
Posted: 11/23/2004, 10:06 PM

The programs created with CCS don't output anything to an ASP file, but rather insert the data into the HTML template. You can replace HTML template with your own XML template and it should work.
However, it may be easier to create your own ASP script (a small loop) that reads data and outputs it in XML format.
_________________
Peter R.
YesSoftware Forums Moderator
For product support please visit http://support.yessoftware.com
View profile  Send private message
MUhd fauzi
Posted: 11/23/2004, 10:32 PM

I know that the output in the html template. and when I removed all the table tags it still works, but what I want is to output it to separate fielname.
My current form name is areagrid and all the output is to this filename, the component requires the inpout ( which is actually the grid content) is from other filename such as xmlinput.txt

I hope this will clear up issue.


thanks
peterr


Posts: 5971
Posted: 11/23/2004, 10:37 PM

You could copy your current page to have 2 identical pages, then modify the 2nd one by changing HTML to XML, then redirect the 1st page to the 2nd page to output the XML then redirect back to the 1st one.

Otherwise the 2nd solution above may work better for you.
_________________
Peter R.
YesSoftware Forums Moderator
For product support please visit http://support.yessoftware.com
View profile  Send private message
muhd fauzi
Posted: 11/23/2004, 10:47 PM

Iam rathe new with asp. How do you redirect from 1st page to 2nd page and back to 1st. Can you give specific example/code

thanks
peterr


Posts: 5971
Posted: 11/23/2004, 11:02 PM

In your case it may be best to modify the generated ASP code (in the Code view in CCS) and change:
==================
'Unload Page @1-CB210C62
UnloadPage
Set Tpl = Nothing
Set HTMLTemplate = Nothing
'End Unload Page
==================
to:
==================
'Unload Page @1-CB210C62
UnloadPage
Set Tpl = Nothing
Set HTMLTemplate = Nothing
'End Unload Page
response.redirect "PageName.asp"
==================
(add the response.redirect at the end)

You may need to do this in combination with file output as discussed at http://forums.codecharge.com/posts.php?post_id=25411
_________________
Peter R.
YesSoftware Forums Moderator
For product support please visit http://support.yessoftware.com
View profile  Send private message
muhd fauzi
Posted: 11/23/2004, 11:20 PM

I will try it and let you know of the outcome..
thanks

Add new topic Subscribe to topic   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

MS Access to Web

Convert MS Access to Web.
Join thousands of Web developers who build Web applications with minimal coding.

CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.