TRIGGER PROCEDURE statement
Defines a schema trigger.
Syntax
event
object
options
Optional parts of the trigger header.Headers for CREATE, DELETE, and FIND triggers take no options. Their syntaxes are as follows:
In the header for a WRITE trigger you can optionally include one or two buffer names.
In the header for an ASSIGN trigger, you can optionally specify one or two value holders. You can specify formatting for each as follows:
ExampleThe following is a WRITE trigger for the Customer table. It uses the OLD BUFFER option so that it can determine whether the
CustNum
value has changed. If the Customer’s outstanding balance exceeds its Credit Limit, the trigger returns the error condition (in which case the record is not updated).
NotesSee also
OpenEdge Release 10.2B
|