autoApplyChanges property
- Last Updated: January 17, 2024
- 1 minute read
- OpenEdge
- Version 12.8
- Documentation
autoApplyChanges property
A boolean on a
JSDO that indicates if the JSDO automatically accepts or rejects changes to JSDO memory
when you call the saveChanges( ) method.
When set to true, and after you have invoked
the saveChanges( ) method, the JSDO automatically accepts
all changes to JSDO memory that are successfully applied for a given resource operation on
the server, and rejects all changes in JSDO memory that are associated with the same
resource operation that are completed with an error.
The default setting is true.
You can set this property both during JSDO instantiation and on an existing JSDO.
Data type:
boolean
Access: Readable/Writable
Applies to: progress.data.JSDO class
When set to false, you must invoke
one of the following methods at the appropriate time to accept or
reject the changes in JSDO memory:
-
acceptChanges( ) -
acceptRowChanges( ) -
rejectChanges( ) -
rejectRowChanges( )
You typically invoke one of these methods either in the appropriate event
handler for a JSDO event or in the appropriate Promise method associated with execution of
the saveChanges( ) method. For information on detecting
successful and unsuccessful resource operations, where you might invoke these methods, see
the description of the saveChanges( ) method.
Example
The following code fragment sets the property both when the JSDO is instantiated and after it is instantiated:
|
See also:
acceptChanges( ) method, acceptRowChanges( ) method, rejectChanges( ) method, rejectRowChanges( ) method, saveChanges( ) method