Shared object definition
The client application uses a shared object called uo_sharedobject to communicate
with the EAServer component. The
shared object has a single function called RetrieveData.
Instance variables
The uo_sharedobject object has
these instance variables defined:
1 |
uo_employee iuo_employee<br>n_jagclnt_connect myconnect |
Constructor event
The Constructor event uses a custom Connection object called n_jagclnt_connect
to connect to the server. Then it creates an instance of the EAServer component:
1 |
long ll_rc, ll_rv<br>myconnect = create n_jagclnt_connect<br>ll_rc = myconnect.ConnectToServer()<br>ll_rv = myconnect.CreateInstance(iuo_employee, &<br> "uo_employee") |
RetrieveData function
The RetrieveData function makes a synchronous
call to the RetrieveData function on the EAServer component. When the function
completes processing, it calls the Notify function
on the callback object, passing it the DataWindow Blob returned
from the server component.
The RetrieveData function takes an argument
called auo_callback, which is of type uo_callback:
1 |
blob lblb_data<br>long ll_rv<br>ll_rv = iuo_employee.retrievedata(lblb_data)<br>auo_callback.notify(lblb_data)<br>return ll_rv |