An identification of the trigger. You can use a logical name.
Triggers (datrg1100m000)Use this session to add, update or delete triggers. To define a trigger, take the following steps:
Note The trigger program (library object) is generated automatically. Refer to RUNTIME COMPONENTS for details. When you delete a trigger, the trigger's runtime files are also deleted. When you add or update a trigger, you must specify the Path for Program. When you set or change the path, you are asked whether the system must create it, if it does not yet exist. When you change the path, the trigger's runtime files are moved to the new directory. When you copy a trigger, the configuration settings are also duplicated. RUNTIME COMPONENTS At runtime, the trigger logic is stored in a library object in the file system. This object is generated from the trigger configuration and is stored in the directory that is specified in the Path for Program field. The following files can be generated in that directory:
When you add a new trigger, empty runtime files are generated immediately. When you change the action or conditions, the library source and object are (re)generated automatically. During (re)generation, the following happens:
Trigger An identification of the trigger. You can use a logical name. Description A description of the trigger. Filling in this field is optional. Path for Program The directory that contains the trigger's runtime library that is generated. When you change the path, the trigger's runtime files are removed and new runtime files are generated in the new directory. Refer to RUNTIME COMPONENTS for more information. Filling this field is mandatory. Condition Template The condition template determines how a condition is configured. Select one of the following condition templates from the drop-down list box:
Action Template Use this field to select how the action to be executed by the trigger is configured. Select one of the following action templates from the drop-down list box:
In the future, other action templates may be added. Debug This field indicates whether the runtime program must be generated in debug mode. The debug mode can be useful for searching an error in the program: the program can run step by step, you can trace variables and so on. For more information refer to "The Debugger" in the Infor ES Programmer's Guide.
Configure Conditions... Use this command to define the trigger condition. Depending on the selected Condition Template you must configure the condition in a text editor or in a session. Configure Actions... Use this command to define the action that the trigger must take. Depending on the selected Action Template you must configure the action in a text editor or in a session. Generate Program Use this command to explicitly regenerate the trigger's runtime components when the conditions or action settings are not changed. Usually you won't need this command, because in most situations the generation is done automatically. You may need it, for example, when the generation failed because the trigger's runtime files could not be written to the directory that is specified in the Path for Program field. For more information, refer to RUNTIME COMPONENTS.
| |||