TRIGGER PROCEDURE FOR event OF object options
TRIGGER PROCEDURE FOR CREATE OF table
TRIGGER PROCEDURE FOR DELETE OF table
TRIGGER PROCEDURE FOR FIND OF table
TRIGGER PROCEDURE FOR WRITE OF tableNEW BUFFER buffer-name1OLD BUFFER buffer-name2
TRIGGER PROCEDURE FOR ASSIGNOF table .fieldNEW VALUE value1AS data-type LIKE db-fieldCOLUMN-LABEL labelFORMAT format-stringINITIAL constantLABEL label-stringNO-UNDOOLD VALUE value2AS data-type LIKE db-fieldCOLUMN-LABEL labelFORMAT format-stringINITIAL constantLABEL label-stringNO-UNDOThe 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).
© 2013 Progress Software Corporation and/or its subsidiaries or affiliates. |