Page History
...
Def_List Name(#Employees) Fields(#Empno #Surname #Givename #Empthm …) Type(*working)
Mthroutine Name(Load)
* Define the service instance and execute asynchronously
Define_Com Class(#ServerModule.GetEmployees) Name(#GetEmployees)
#GetEmployees.ExecuteAsync( #Employees )
* When the server returns
Evtroutine Handling(#GetEmployees.Completed)
* Load the list data
Selectlist Named(#Employees)
Add_Entry To_List(#List)
Endselect
Endroutine
* If the server call failed
Evtroutine Handling(#GetEmployees.Failed)
* Error handling
Endroutine
Endroutine
| Note |
|---|
| Note: Lists can be returned into either a working list, as in this example, or a UDC. |
For more information on calls to Server Modules refer to Asynchronous vs Synchronous Database Access.