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.

When-Timer-Expired trigger<br />

Description<br />

Fires when a timer expires.<br />

Definition Level form<br />

Legal Commands<br />

SELECT statements, unrestricted built-ins, restricted built-ins<br />

Enter Query Mode yes<br />

Usage Notes<br />

Timers are created programmatically by calling the CREATE_TIMER built-in procedure.<br />

• The When-Timer-Expired trigger can not fire during trigger, navigation, or transaction processing.<br />

• Use a When-Timer-Expired trigger to initiate an event, update item values, or perform any task that<br />

should occur after a specified interval.<br />

• You can call GET_APPLICATION_PROPERTY(TIMER_NAME) in a When-Timer-Expired<br />

trigger to determine the name of the most recently expired timer.<br />

On Failure<br />

no effect<br />

Fires In<br />

Process Expired Timer<br />

See Process Flowcharts<br />

When-Timer-Expired trigger restrictions<br />

A When-Timer-Expired trigger will not fire when the user is currently navigating a menu.<br />

When-Timer-Expired trigger examples<br />

Example<br />

The following example displays a message box each time a repeating timer expires. The following<br />

example is from a telemarketing application, in which sales calls are timed, and message boxes are<br />

displayed to prompt the salesperson through each stage of the call. The message box is displayed each<br />

time a repeating timer expires.<br />

DECLARE<br />

timer_id TIMER;<br />

alert_id ALERT;<br />

call_status NUMBER;<br />

msg_1 VARCHAR2(80) := ’Wrap up the first phase of your<br />

526

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

Saved successfully!

Ooh no, something went wrong!