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.

SYSTEM.TRIGGER_ITEM system variable<br />

Syntax<br />

SYSTEM.TRIGGER_ITEM<br />

Description<br />

SYSTEM.TRIGGER_ITEM represents the item (BLOCK.ITEM) in the scope for which the trigger is<br />

currently firing. When referenced in a key trigger, it represents the item where the cursor was located<br />

when the trigger began. The value is always a character string.<br />

Usage Notes<br />

SYSTEM.TRIGGER_ITEM remains the same from the beginning to the end of given trigger. This<br />

differs from SYSTEM.CURSOR_ITEM, which may change within a given trigger when navigation<br />

takes place.<br />

SYSTEM.TRIGGER_ITEM restrictions<br />

Avoid using SYSTEM.TRIGGER_ITEM in triggers where the current navigation unit is not the item,<br />

such as Pre- and Post-Record, Block, and <strong>Form</strong> triggers. In these triggers, the value of<br />

SYSTEM.TRIGGER_ITEM is NULL.<br />

SYSTEM.TRIGGER_ITEM examples<br />

Assume that you want to write a user-defined procedure that navigates to the item where the cursor was<br />

when the current trigger initially fired. The following statement performs this function.<br />

Go_Item(:System.trigger_Item);<br />

414

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

Saved successfully!

Ooh no, something went wrong!