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.

On-Insert trigger<br />

Description<br />

Fires during the Post and Commit Transactions process when a record is inserted. Specifically, it fires<br />

after the Pre-Insert trigger fires and before the Post-Insert trigger fires, when <strong>Form</strong> <strong>Builder</strong> would<br />

normally insert a record in the database. It fires once for each row that is marked for insertion into the<br />

database.<br />

Definition Level form or block<br />

Legal Commands<br />

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

Enter Query Mode no<br />

Usage Notes<br />

• Use an On-Insert trigger to replace the default <strong>Form</strong> <strong>Builder</strong> processing for handling inserted<br />

records during transaction posting.<br />

• To perform the default <strong>Form</strong> <strong>Builder</strong> processing from this trigger, include a call to the<br />

INSERT_RECORD built-in.<br />

On Failure<br />

<strong>Form</strong> <strong>Builder</strong> performs the following steps when the On-Insert trigger fails:<br />

• sets the error location<br />

• rolls back to the most recent savepoint<br />

Fires In<br />

Post and Commit Transactions<br />

See Process Flowcharts<br />

448

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

Saved successfully!

Ooh no, something went wrong!