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

SYSTEM.TRIGGER_ITEM System Variable

Syntax

SYSTEM.TRIGGER_ITEM

Description

SYSTEM.TRIGGER_ITEM represents the item (BLOCK.ITEM) in the scope for which the trigger is currently firing. When referenced in a key trigger, it represents the item where the cursor was located when the trigger began. The value is always a character string.

Usage Notes

SYSTEM.TRIGGER_ITEM remains the same from the beginning to the end of given trigger. This differs from SYSTEM.CURSOR_ITEM, which may change within a given trigger when navigation takes place.

SYSTEM.TRIGGER_ITEM Restrictions

Avoid using SYSTEM.TRIGGER_ITEM in triggers where the current navigation unit is not the item, such as Pre- and Post-Record, Block, and Form triggers. In these triggers, the value of SYSTEM.TRIGGER_ITEM is NULL.

SYSTEM.TRIGGER_ITEM Examples

Assume that you want to write a user-defined procedure that navigates to the item where the cursor was when the current trigger initially fired. The following statement performs this function.

Go_Item(:System.Trigger_Item);