Salesforce

Raising Events Defined in the Host Project (Magic xpa 3.x)

« Go Back

Information

 
Created ByKnowledge Migration User
Approval Process StatusPublished
Objective
Description

Raising Events Defined in the Host Project (Magic xpa 3.x)

There are instances in which a component must use an event that is defined in the host project. This is made possible by the use of Public events. These events are raised according to their public name. If the public name is not found in the task tree, the event will not be handled.

How do you define a Public Event?

A Public event may only be defined in the Main Program. Because the host project where the event is defined is not exposed as a component, it is not enough to simply define the event with a public name. In this case, it is also necessary to expose the event.

The figure below shows an example of how to expose a public event.

How do you use a Public Event?

When using a public event, the event type will be Public Event. When zooming to the Event, we receive the expression editor. Here we enter the public name of the event as text.

The figure below shows an example of how to use a public event.

Important:

In the project where the event is defined, the event is handled as a regular event and not as a public event.

Remember:

If the Expose check box is not checked or if there is no matching between the names, the event will not be found in the task tree.

Reference
Attachment 
Attachment