4D v13.4

TRIGGER PROPERTIES

Home

 
4D v13.4
TRIGGER PROPERTIES

TRIGGER PROPERTIES 


 

TRIGGER PROPERTIES ( triggerLevel ; dbEvent ; tableNum ; recordNum ) 
Parameter Type   Description
triggerLevel  Longint in Trigger execution cycle level
dbEvent  Longint in Database event
tableNum  Longint in Involved table number
recordNum  Longint in Involved record number

The TRIGGER PROPERTIES command returns information about the trigger execution level you pass in triggerLevel. You use this command in conjunction with Trigger level to perform different actions depending on the cascading of trigger execution levels. For more information, see Triggers.

If you pass a non-existing trigger execution level, the command returns 0 (zero) in all parameters.

The nature of the database event for the trigger execution level is returned in dbEvent. The following predefined constants are provided in the Trigger Events theme:

Constant Type Value
On Deleting Record Event Longint 3
On Saving Existing Record Event Longint 2
On Saving New Record Event Longint 1

The table number and record number for the record involved by the database event for the trigger execution level are returned in tableNum and recordNum.

 
PROPERTIES 

Product: 4D
Theme: Triggers
Number: 399

 
INDEX

Alphabetical list of commands

 
HISTORY 

Modified: 4D v11 SQL Release 2

 
SEE ALSO 

About Record Numbers
Trigger event
Trigger level
Triggers