batch property
- Last Updated: March 25, 2016
- 1 minute read
- OpenEdge
- Version 13.0
- Documentation
A reference to an object with a property named operations, which is an array containing the request objects
for each of the one or more record-change operations on a resource performed in response
to calling the JSDO saveChanges( ) method without using
Submit (either with an empty parameter list or with the single parameter value of
false).
Data type: Object
Access: Read-only
Applies to: request object
In addition to the properties documented for the request object, each
request object returned in the operations property array
also contains an operation property with a number value that indicates the record-change operation
associated with the request object:
1— Create3— Update4— Delete
The batch property is available only for
the following JSDO events or in the request object returned to a Promise object callback,
and only after calling saveChanges( ) either with an empty parameter list or with the single parameter
value of false to invoke individual Data Object Create,
Update, or Delete (CUD) operations:
afterSaveChangesbeforeSaveChanges
This request object property is also available for any session online and offline events that
are fired in response to the associated resource operation when it encounters a change in
the online status of the JSDO login session (JSDOSession or
Session object). The request object is itself passed as a
parameter to any event handler functions that you subscribe both to JSDO events and to the
online and offline
events of the session that manages Data Object Services for the JSDO.