Salesforce

How Do I Enable Event Handling for a COM Object While in a Descendant Task? (Magic xpa 3.x)

« Go Back

Information

 
Created ByKnowledge Migration User
Approval Process StatusPublished
Objective
Description

How Do I Enable Event Handling for a COM Object While in a Descendant Task? (Magic xpa 3.x)

If you have several COM objects that do similar things, you will find it convenient to do create event handlers that work in one of the parent tasks. For instance, it is often useful to create error handlers that work globally, in the Main Program, to handle errors in all the COM objects of one type.

Here is how to do it.

  1. Create an event that responds to any COM object of a specific type. In this example, we have a global handler for a spelling error, using a 3rd party spell-checking tool.

  2. Set the Scope appropriate to what you are trying to do. For example, to set a handler in the Main Program that will respond to any program, set Scope: to Global. If you want a parent task to respond to a subtask, set the Scope to SubTree.

Reference
Attachment 
Attachment