You can use the Trigger Template Editor to create an RI Type Override template in a physical model, which changes the behavior of the built-in template for an RI Trigger Type.
To create an RI type override trigger template
The Trigger Template Editor opens.
Select the template in the Trigger Template Name grid, and click the New button. Click Yes when you are prompted to confirm whether you want to copy the template code of the selected template to a new trigger template. The new template displays in the Trigger Template Name grid with a default name, which you can change in this field.
Click the New button on the toolbar. The new template displays in the Trigger Template Name grid with a default name, which you can change in this field.
Select the template in the Trigger Template Name grid, and click the Code tab. Enter the text or code in the code area. You can use the toolbar to cut, copy, or paste text, open the Macro Toolbox, or work with the Text Editor.
Select the template in the Trigger Template Name grid to which you want to add macro code and click the Code tab. Position the cursor in the code area where you want to insert the macro code. Click the Macro Toolbox button to open the Macro Toolbox. Select the macro you need and click the Insert Macro button. Type any parameters required in the code area.
The RI Type Override template is created and the Trigger Template Editor closes.
Note: You must select the RI Type Override check box for triggers during schema generation to generate an RI type override template in the schema.
Copyright © 2013 CA.
All rights reserved.
|
|