Featured Article: Difference between revisions

From DataFlex Wiki
Jump to navigationJump to search
mNo edit summary
mNo edit summary
 
Line 1: Line 1:
'''Using the express versions of sql servers'''
'''AJAX - Return Arrays and Structs to your JavaScript with XML'''


... sample code that fills up a 2-column grid with data which is retrieved from a SQL Server backend using a SQL Statement that is dynamically created. Note that it uses the existing connection from an already opened table called Customer. This way you don't have to make the connection with the SQL Server yourself and it is more maintenance friendly in case the tables get move over to a different server or database.
The VDF AJAX Library provides the functionality for developers to call published methods within a WBO and receive a return value (for Functions). This is done using a Remote Method Invokation (RMI). Using RMI's for returning a single datatype is fairly straight-forward. If you want to return a Struct, Array , or an Array of Structs you need to do some more work. Remember, you are returning these datatypes to JavaScript and there is no direct translation from a Windows Struct or Array to a JavaScript Struct or Array.  


 
..[[AJAX - Return Arrays and Structs to your JavaScript with XML|more]]
('''[[ExpressConnectivity|more...]]''')

Latest revision as of 22:30, 20 November 2008

AJAX - Return Arrays and Structs to your JavaScript with XML

The VDF AJAX Library provides the functionality for developers to call published methods within a WBO and receive a return value (for Functions). This is done using a Remote Method Invokation (RMI). Using RMI's for returning a single datatype is fairly straight-forward. If you want to return a Struct, Array , or an Array of Structs you need to do some more work. Remember, you are returning these datatypes to JavaScript and there is no direct translation from a Windows Struct or Array to a JavaScript Struct or Array.

..more