You can use the Table Trigger Editor to define a table override trigger. Specify general information for a table override trigger, such as the action for which the trigger should fire, when the trigger should fire, how the trigger should fire, and so forth.
To define a table override trigger
The Table Trigger Editor opens.
Note: Click New on the toolbar to create a new trigger. Use the Enter filter text box to filter a very large list of triggers to quickly locate the one that you want to define.
Displays the table trigger name. You can change the trigger name in this field.
Specifies to execute the table trigger on INSERT.
Specifies to execute the table trigger on UPDATE.
Specifies to execute the table trigger on DELETE.
Specifies when the table trigger is executed. Make a selection from the drop-down control.
Generates SQL during forward engineering. Clear the check box if you do not want to generate SQL.
Specifies the name to use to reference the post-change data in the table. Enter the name in this field. You can use the %RefClause macro to include the REFERENCES clause in the trigger.
Specifies the name to use to reference the pre-change data in the table. Enter the name in this field. You can use the %RefClause macro to include the REFERENCES clause in the trigger.
Displays the name of the selected table (if it is the parent table in a relationship) or the parent of the selected table, for each relationship in which the selected table is involved.
Displays the name of the selected table (if it is the child table in a relationship) or the child of the selected table, for each relationship in which the selected table is involved.
Displays the name of all relationships for the selected table.
List the referential integrity rules that apply to the selected relationship. Rules are abbreviated and indicate the RI trigger action, such as CHILD UPDATE (CU:) and the RI type, such as RESTRICT (R).
The table override trigger is defined and the Table Trigger Editor closes.
Copyright © 2012 CA. All rights reserved. | Tell Technical Publications how we can improve this information |