How a Promoted Event Fits in the Event Chain
OpenInsight processes promoted events in the following order:
- APPNAME*EVENTTYPE*FORMNAME.CONTROLNAME
- APPNAME*EVENTTYPE*FORMNAME.
- APPNAME*EVENTTYPE.CONTROLTYPE.OIWIN*
- SYSPROG*EVENTTYPE.CONTROLTYPE.OIWIN*
- APPNAME*EVENTTYPE..OIWIN*
- SYSPROG*EVENTTYPE..OIWIN*
- SYSPROG*..OIWIN*
Promoted events created in SYSPROG will apply to all applications. Also, if your application inherits from another application, then the inherited events will also apply.
Note: You can terminate the event chain at any point by returning a 0 from your code.
When you save a form, the Form Designer checks for promoted events and includes them in the compiled form. This is done to improve performance at runtime.
Note: You will need to re-compile all your forms the first time you add a promoted event or if you remove a promoted event.