Callback object definition
When the EAServer component
has finished processing, the shared object notifies a user object
called uo_callback, which in turn
notifies the w_employee window. The uo_callback object
has two functions, Notify and PassObject.
Notify function
The Notify function calls a function called SetDW on
the w_employee window, passing it
the DataWindow Blob returned from the server
component. The Notify function takes the argument ablb_data,
which is of type Blob, and returns a Long value.
The function has the following script:
1 |
long ll_rv<br>ll_rv = iw_employee.setdw(ablb_data)<br>if ll_rv = -1 then<br> MessageBox("Error", "SetDW call failed!")<br>end if<br>return ll_rv |
PassObject function
The PassObject function caches a reference
to the w_employee window in the iw_employee instance
variable. The function takes the argument aw_employee, which
is of type w_employee, and returns
a Long value:
1 |
iw_employee = aw_employee<br>return 1 |
Document get from Powerbuilder help
Thank you for watching.
Subscribe
Login
0 Comments
Oldest