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:

long ll_rv
ll_rv = iw_employee.setdw(ablb_data)
if ll_rv = -1 then
	MessageBox("Error", "SetDW call failed!")
end if
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:

iw_employee = aw_employee
return 1