I think what Jerry is saying is that you can return whatever you want - json,xml,arrays,html,text,base64encoded etc ....
U2 has inbuilt functions for parsing and creating xml and arrays, if you want to do anything else it will have to be coded in a string (as per your html example) - Actually xhtml can be classed as xml so you could generate that using the correct DOM statements. As far as using the list command and TOXML you can join to any number of tables, have virtual fields etc, again most anything is possible. However as stated it may be easier to just write it in unibasic if it is a more complex query. IF it is just simple xml you want to return you can just create it inside your program as a string, I do this often. Rgds Symeon. -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of [EMAIL PROTECTED] Sent: 12 June 2008 21:19 To: [email protected] Subject: RE: [U2] UniSubroutine question >>We make calls to our UV box (Linux) from network apps (Windows) passing >>whatever variables collected on the net. The calls, call subroutines on the UV >>server that create whatever the Net application needs to display or process >>the information. Sometimes HTML, sometimes XML, and sometimes arrays of data. >>It is much faster to do it this way then to just do other types of calls to >>the database. The Linux system is faster at crunching the data and building >>the pages then trying to quiry for the data and building the pages in Windows. Jerry, Do you build the HTML in the UniBasic subs? e.g. PAGE = "<html>" PAGE := "<head>" PAGE := "<title>This is the title</title>" . . . RETURN PAGE Charles Shaffer Senior Analyst NTN-Bower Corporation ------- u2-users mailing list [email protected] To unsubscribe please visit http://listserver.u2ug.org/ No virus found in this incoming message. Checked by AVG. Version: 8.0.100 / Virus Database: 270.3.0/1500 - Release Date: 6/12/2008 4:58 PM No virus found in this outgoing message. Checked by AVG. Version: 8.0.100 / Virus Database: 270.3.0/1501 - Release Date: 6/13/2008 6:33 AM ------- u2-users mailing list [email protected] To unsubscribe please visit http://listserver.u2ug.org/
