A script-enabled browser is required for this page to function properly.

Responding to Multiple Timers

When working with multiple timers, remember that the When-Timer-Expired is a form-level trigger. It fires any time a timer expires. If your application contains several timers, your When-Timer-Expired trigger should contain code that will handle the different timers accordingly.

Note: To retrieve the timer name of the most recently executed timer, initiate a call to GET_APPLICATION_PROPERTY from within a When-Timer-Expired trigger. Otherwise, the results of the Built-in are undefined.

Responding to multiple timers: Examples

/* Create a When-Timer-Expired trigger that can handle multiple
** application timers.
*/
DECLARE
expired_timer CHAR(20);
BEGIN
expired_timer:=GET_APPLICATION_PROPERTY(TIMER_NAME);
IF expired_timer='T1'
THEN /* handle timer T1 */;
ELSIF expired_timer='T2'
THEN /* handle timer T2 */;
ELSE /* handle all other timers */;
END IF;
END;


GET_APPLICATION_PROPERTY Built-in

When-Timer-Expired Trigger