afterFill event
- Last Updated: December 13, 2016
- 1 minute read
- OpenEdge
- Version 13.0
- Documentation
Fires on the JSDO after a call to the fill( ) method executes and returns the results from the
server to JSDO memory for a Read operation request on its Data Object resource.
Alias:
afterRead
Applies to: progress.data.JSDO class
The following parameters appear in the signature of any event handler (callback) function (or functions) that you subscribe to this event:
Syntax
|
- jsdo
- A reference to the JSDO that invoked the
fill( )method to initialize JSDO memory with the data in its resource. For more information, see the description of the jsdo property of the request object. - success
- A
booleanthat istrueif the Read operation on the resource was successful. For more information, see the description of the success property of the request object. - request
- A reference to the request object returned after the
fill( )method completed execution either successfully or unsuccessfully. For more information, see the description of the request object.
Application code can subscribe a callback to this event by invoking the
subscribe( ) method on a JSDO instance.
Example
The following code fragment subscribes the callback function, onAfterFill, to handle the afterFill event fired on the JSDO, myjsdo,
after results are returned for a Read operation on a single-table resource,
ttCustomer:
|
See also:
beforeFill event, fill( ) method, subscribe( ) method (JSDO class), unsubscribe( ) method (JSDO class)