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

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Pre-Record trigger<br />

Description<br />

Fires during the Enter the Record process, during navigation to a different record.<br />

Definition Level form or block<br />

Legal Commands<br />

SELECT statements, unrestricted built-ins<br />

Enter Query Mode no<br />

Usage Notes<br />

Use a Pre-Record trigger to keep a running total.<br />

On Failure<br />

Navigation fails and focus remains in the current item.<br />

Fires In<br />

Enter the Record<br />

See Process Flowcharts<br />

Pre-Record trigger restrictions<br />

A Pre-Record trigger fires only when the form is run with a validation unit of the item or record, as<br />

specified by the Validation Unit form property.<br />

Pre-Record trigger examples<br />

Example<br />

The following trigger prevents the user from entering a new record given some dynamic condition and<br />

the status of SYSTEM.RECORD_STATUS evaluating to NEW.<br />

IF (( dynamic-condition)<br />

AND :System.Record_Status = ’NEW’) THEN<br />

RAISE <strong>Form</strong>_trigger_Failure;<br />

END IF;<br />

489

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

Saved successfully!

Ooh no, something went wrong!