This is the legacy 4D documentation web site. Documentations are progressively being moved to developer.4d.com

Home

 
4D v19.8
dataStore.cancelTransaction( )

dataStore.cancelTransaction( ) 


 

dataStore.cancelTransaction () 
Does not require any parameters

The dataStore.cancelTransaction( ) method cancels the transaction opened by the dataStore.startTransaction( ) method at the corresponding level in the current process for the specified datastore.

The dataStore.cancelTransaction( ) method cancels any changes made to the data during the transaction.

You can nest several transactions (sub-transactions). If the main transaction is cancelled, all of its sub-transactions are also cancelled, even if they were validated individually using the dataStore.validateTransaction( ) method.

Example  

See example for the dataStore.startTransaction( ) method.



See also 

CANCEL TRANSACTION
dataStore.startTransaction( )
dataStore.validateTransaction( )

 
PROPERTIES 

Product: 4D
Theme: ORDA - DataStore

This command can be run in preemptive processes

 
PAGE CONTENTS 
 
HISTORY 

Created: 4D v18

 
ARTICLE USAGE

4D Language Reference ( 4D v19)
4D Language Reference ( 4D v19.1)
4D Language Reference ( 4D v19.4)
4D Language Reference ( 4D v19.5)
4D Language Reference ( 4D v19.6)
4D Language Reference ( 4D v19.7)
4D Language Reference ( 4D v19.8)