Previous Topic: CA Gen Supplied Event TypesNext Topic: Action Diagram Statements for GUI Applications


User-Defined Event Types

User-defined event types do not require the direct action of an application user. Instead, these event types can be triggered by TIREVENT, a special external action block.

TIREVENT is pre-defined to the runtime components. You do not have to compile it outside of CA Gen or write any other code.

The example that follows illustrates how TIREVENT must be defined in a Procedure Step.

TIREVENT
IMPORTS:
Work View IEF_Supplied (transient, optional, import only)
command (required)
EXPORTS:
LOCALS:
ENTITY ACTIONS:
EXTERNAL

TIREVENT must be used in the Procedure Step as follows:

SET local IEF supplied command to <your_event_type>
USE TIREVENT
WHICH IMPORTS: local IEF supplied command

The name of the user-defined event type is passed to the TIREVENT external action block (your_event_type). The event action name IS NOT passed to TIREVENT. Both names are entered using the Events dialog of the Navigation Diagram.

Note: For more information about user-defined event types, see the Design Guide.