![Page 1: Mastering OpenInsight’s Event Chain. Events Ways for objects to communicate with other objects Physical events – click, lostfocus, etc. Programmatic events](https://reader038.vdocument.in/reader038/viewer/2022103005/56649d9e5503460f94a88b7c/html5/thumbnails/1.jpg)
Stacking the Deck
Mastering OpenInsight’sEvent Chain
![Page 2: Mastering OpenInsight’s Event Chain. Events Ways for objects to communicate with other objects Physical events – click, lostfocus, etc. Programmatic events](https://reader038.vdocument.in/reader038/viewer/2022103005/56649d9e5503460f94a88b7c/html5/thumbnails/2.jpg)
Events• Ways for objects to communicate with other
objects• Physical events – click, lostfocus, etc. • Programmatic events – calling events directly
from code• Everything GUI is driven through events
![Page 3: Mastering OpenInsight’s Event Chain. Events Ways for objects to communicate with other objects Physical events – click, lostfocus, etc. Programmatic events](https://reader038.vdocument.in/reader038/viewer/2022103005/56649d9e5503460f94a88b7c/html5/thumbnails/3.jpg)
What are Promoted Events?• Definition: Events that are tied to an application
or type of control• Standard events are control/window specific• Alternative names: Global Events, Universal
Events, Generic Events
![Page 4: Mastering OpenInsight’s Event Chain. Events Ways for objects to communicate with other objects Physical events – click, lostfocus, etc. Programmatic events](https://reader038.vdocument.in/reader038/viewer/2022103005/56649d9e5503460f94a88b7c/html5/thumbnails/4.jpg)
How Does the Event Chain Flow?Event CURR_APP*EVENTTYPE*FORMNAME.CONTROLNAME
CURR_APP*EVENTTYPE*FORMNAME.
CURR_APP*EVENTTYPE.CONTROLTYPE.OIWIN*
SYSPROG*EVENTTYPE.CONTROLTYPE.OIWIN*
CURR_APP*EVENTTYPE..OIWIN*
SYSPROG*EVENTTYPE..OIWIN*
SYSPROG*..OIWIN* Done
CURR_APP*..OIWIN*
Return 0
EventScriptEvent
Continue?
Continue?
Done
Yes
Yes
No
NoSystemEvent
QuickEvent
ScriptEvent
![Page 5: Mastering OpenInsight’s Event Chain. Events Ways for objects to communicate with other objects Physical events – click, lostfocus, etc. Programmatic events](https://reader038.vdocument.in/reader038/viewer/2022103005/56649d9e5503460f94a88b7c/html5/thumbnails/5.jpg)
How Does the Event Chain Flow?• Flows from specific to generic• Flows from application to inherited
![Page 6: Mastering OpenInsight’s Event Chain. Events Ways for objects to communicate with other objects Physical events – click, lostfocus, etc. Programmatic events](https://reader038.vdocument.in/reader038/viewer/2022103005/56649d9e5503460f94a88b7c/html5/thumbnails/6.jpg)
Why use Promoted Events?• To easily provide application wide functionality• To manage all functionality tied to a specific
event in one location• To reduce repetitive coding• To eliminate coding in the script events• To eliminate creating quick events
![Page 7: Mastering OpenInsight’s Event Chain. Events Ways for objects to communicate with other objects Physical events – click, lostfocus, etc. Programmatic events](https://reader038.vdocument.in/reader038/viewer/2022103005/56649d9e5503460f94a88b7c/html5/thumbnails/7.jpg)
DEMONSTRATION
![Page 8: Mastering OpenInsight’s Event Chain. Events Ways for objects to communicate with other objects Physical events – click, lostfocus, etc. Programmatic events](https://reader038.vdocument.in/reader038/viewer/2022103005/56649d9e5503460f94a88b7c/html5/thumbnails/8.jpg)
How are Promoted Events Created Now?• Launch the Design Events menu from the UI
Workspace window • Select your event, enforce it, and click Generate
Promoted Code• Recompile windows to take advantage of the new
promoted event– (Suggestion: Use the Entity -> Compile
feature from the Application Manager to compile multiple forms easily)
![Page 9: Mastering OpenInsight’s Event Chain. Events Ways for objects to communicate with other objects Physical events – click, lostfocus, etc. Programmatic events](https://reader038.vdocument.in/reader038/viewer/2022103005/56649d9e5503460f94a88b7c/html5/thumbnails/9.jpg)
DEMONSTRATION
![Page 10: Mastering OpenInsight’s Event Chain. Events Ways for objects to communicate with other objects Physical events – click, lostfocus, etc. Programmatic events](https://reader038.vdocument.in/reader038/viewer/2022103005/56649d9e5503460f94a88b7c/html5/thumbnails/10.jpg)
Efficient Management of Promoted Events• Keep promoted events generic• Use “commuter module” functions to manage a
window’s events• Use inherited/sysprog promoted events to work
across all applications
![Page 11: Mastering OpenInsight’s Event Chain. Events Ways for objects to communicate with other objects Physical events – click, lostfocus, etc. Programmatic events](https://reader038.vdocument.in/reader038/viewer/2022103005/56649d9e5503460f94a88b7c/html5/thumbnails/11.jpg)
CODE EXAMPLE
![Page 12: Mastering OpenInsight’s Event Chain. Events Ways for objects to communicate with other objects Physical events – click, lostfocus, etc. Programmatic events](https://reader038.vdocument.in/reader038/viewer/2022103005/56649d9e5503460f94a88b7c/html5/thumbnails/12.jpg)
Thank You
Any Questions?