11.01.2013 Views

Oracle Forms Developer – Form Builder Reference, Volume 1

Oracle Forms Developer – Form Builder Reference, Volume 1

Oracle Forms Developer – Form Builder Reference, Volume 1

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Pre-Commit trigger<br />

Description<br />

Fires once during the Post and Commit Transactions process, before <strong>Form</strong> <strong>Builder</strong> processes any records<br />

to change. Specifically, it fires after <strong>Form</strong> <strong>Builder</strong> determines that there are inserts, updates, or deletes in<br />

the form to post or commit, but before it commits the changes. The trigger does not fire when there is an<br />

attempt to commit, but validation determines that there are no changed records in the form.<br />

Definition Level form<br />

Legal Commands<br />

SELECT statements, DML statements (DELETE, INSERT, UPDATE), unrestricted built-ins<br />

Enter Query Mode no<br />

Usage Notes<br />

Use a Pre-Commit trigger to perform an action, such as setting up special locking requirements, at any<br />

time a database commit is going to occur.<br />

On Failure<br />

The Post and Commit process fails: No records are written to the database and focus remains in the<br />

current item.<br />

Note: If you perform DML in a Pre-Commit trigger and the trigger fails, you must perform a manual<br />

rollback, because <strong>Form</strong> <strong>Builder</strong> does not perform an automatic rollback. To prepare for a possible<br />

manual rollback, save the savepoint name in an On-Savepoint trigger, using<br />

GET_APPLICATION_PROPERTY (Savepoint_Name). Then you can roll back using<br />

ISSUE_ROLLBACK (Savepoint_Name).<br />

Fires In<br />

Post and Commit Transactions<br />

See Process Flowcharts<br />

479

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!