Handler’s Scope (Magic xpa 3.x)
You can define a handler to be available for the entire sub-tree, the part of the runtime tree from the current task downwards, or to only be available for the current task. You set this in the Scope property of the event handler logic unit.
When you set Scope to Task, the handler is executed only when the corresponding event is triggered within this task alone. If the event is triggered in a descendant task, the handler will be skipped over as the runtime tree is scanned.
When you set Scope to SubTree, the handler is executed whether the corresponding event is triggered in this task or in one of its descendant tasks.
Global Handlers:
|
A handler defined in the Main Program has another value for the Scope property, Global. This Scope setting is relevant for projects that are published as components.
|