guides:programming:programmers_reference_manual:how_a_promoted_event_fits_in_the_event_chain

How a Promoted Event Fits in the Event Chain

OpenInsight processes promoted events in the following order:

  1. APPNAME*EVENTTYPE*FORMNAME.CONTROLNAME
  2. APPNAME*EVENTTYPE*FORMNAME.
  3. APPNAME*EVENTTYPE.CONTROLTYPE.OIWIN*
  4. SYSPROG*EVENTTYPE.CONTROLTYPE.OIWIN*
  5. APPNAME*EVENTTYPE..OIWIN*
  6. SYSPROG*EVENTTYPE..OIWIN*
  7. 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.

  • guides/programming/programmers_reference_manual/how_a_promoted_event_fits_in_the_event_chain.txt
  • Last modified: 2024/06/19 20:20
  • by 127.0.0.1