MDBTransaction

From HTML5 Builder
Jump to: navigation, search

MDBTransaction lets your application perform a transaction against an MDB object.

Functions

These are JavaScript functions you can call when you use this component in a screen.
Note: Replace ComponentName with the actual name of the component, that is, the value of its Name property. For example: MDBTransaction1.
ComponentNameTransaction
Performs a transaction on a database (MDB object).

Events

These are JavaScript MDBTransaction events you can associate to JavaScript functions.

OnTransaction
This event gets triggered when you run ComponentNameTransaction. Its only parameter an object on which you can call executeSQL methods. In the function you call from this event, you should define any SQL code you want to run to the database ComponentName is associated to through executeSQL calls.
OnTransactionError
This event gets triggered when an error occurs after calling ComponentNameTransaction. Its only parameter is a ContactError object.
OnTransactionSuccess
This event gets triggered when ComponentNameTransaction runs successfully.

See Also

Personal tools