1. When WebService is called on the client, the script execution sequence is incorrect (error: XXX is not defined !). The problem is that Atlas has not been initialized yet.
Solution ALTAS has a sys. application, which is a global variable. It exists as long as you reference atlas and has a load event. Use SYS. application. Load. Add (mainloop );
2. Data Processing of the datatable returned by the client operation:
The following methods are available for datatable objects:
- Add: Add the passed datarow object to the current able. The imported datarow object must have the same schema as the datatable object. Recommended firstCreaterowMethod to create a new row and use it as a parameter of this method.
- Clear: Clears all rows of the current able.
- Remove: Deletes a row of the current able based on the input datarow object.
- Createrow: Creates a new row based on the schema of the current able.
- Getchanges: Get the modification to the datatable. The return values of this method include the following three sets:
- Updated: Set of datarow modified.
- Inserted: The set of added datarow.
- Deleted: The set of deleted datarow.
- Getcolumn: Searches for and returns a datacolumn object in the able based on the input column name.
- Getrow: Return the corresponding datarow object based on the input index value.
- Getitem: AndGetrowThe method functions are the same. It is estimated that a more generalized name is provided.
Processed script:
// Display the user list
For (VAR I = 0; I <aruserlist. get_length (); I ++)
{
// User Login Name
VaR username = aruserlist. getitem (I). getproperty ('username ');
// Nickname
VaR nickname = aruserlist. getitem (I). getproperty ('nickname ');
}