Kbase P72745: How to define a trigger dynamically?
Autor |
  Progress Software Corporation - Progress |
Acesso |
  Público |
Publicação |
  3/19/2004 |
|
Status: Unverified
GOAL:
How to define a trigger dynamically?
GOAL:
How to I assign a trigger to a widgets of which I have the handle?
GOAL:
How to define a dynamic trigger?
GOAL:
How to define a run-time trigger?
FIX:
You can dynamically add a trigger to a widget of whom you have the handle. The syntax is the one below:
ON 'eventName':U OF myHandle PERSISTENT RUN MyProc IN THIS-PROCEDURE.
MyProc has to contain the code associated to this trigger.
It is worths to note:
- In order to work properly you have to define it as PERSISTENT
- It is not compulsory that you run in THIS-PROCEDURE but it is needed that you define it to RUN in one procedure.
- There is no way to check if a trigger is already defined for a specific widget (handle). Defining a dynamic trigger will override the existing one.