Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Forms_inMotion("query", "<yourCallBackFunctionName>","<nameOfQueryToExecuteOnServer>",parameters_array, responsetype);

Code Block
languagejs
var parameters = [];
parameters[0] = { name:"@employeenum",value:empID };
Forms_inMotion("query","userNameLookupCallback","userIDFromEmpID", parameters, "xml");

 

Step 3) Handling the callback.  The data object that is returned is an XML document.  The below example shows using the native JavaScript parser, loading the response into an object called xmlDoc, then looping through the "record" nodes that are returned.  Each record node represents a single line of results from the query.  Each column of the query is an attribute on that record node.

...

Page Properties
hiddentrue


Related issues 
Component