Salesforce

Control-specific Handler (Magic xpa 4.x)

« Go Back

Information

 
Created BySalesforce Service User
Approval Process StatusPublished
Objective
Description

Control-specific Handler (Magic xpa 4.x)

You can also condition handler execution by specifying that the handler only be executed when the corresponding event is triggered from a specific form control.

You can limit the handler to a specific control by selecting the control from the Controls list. You access the Controls list by zooming from the placeholder that is prefixed by On:. You may also define the control’s name by manually typing its name.

When there are several handlers for the same event in the same task, the runtime engine first searches the control-specific handlers and executes them if they match the control. Only after these handlers are executed does the engine scan for non-control-specific handlers in the same task, again from the bottom of the Task Editor upwards.

Accessing Control-specific Handlers from the Form Designer

You can easily create a new event handler for a specific control, view its already defined handler, and switch to these handlers directly from the visual representation of the control on the Form Designer.

In the context menu opened from a control, you can see the names of the already defined handlers. Selecting one of these menu options automatically switches to the handler’s logic unit definition in the logic layer.

Reference
Attachment 
Attachment