Salesforce

How Do I Set a Context Menu for an Individual Control? (Magic xpa 3.x)

« Go Back

Information

 
Created ByKnowledge Migration User
Approval Process StatusPublished
Objective
Description

How Do I Set a Context Menu for an Individual Control? (Magic xpa 3.x)

You can create a context menu for the entire application in the Menu repository, and you can override that and create a default menu for each form. You can also create a context menu at the field level. In this example, we create a special context menu to look up zip codes.

Creating a field level context menu

Prerequisite: The menu you want to select must already exist.

  1. Go to the control properties (Alt+Enter when the control is selected).

  2. Zoom from the Context Menu field and select the menu you want to use.

  3. Alternatively, you can enter an expression that will evaluate to the context menu number at runtime, by expanding the property and zooming from the Expression line.

Now, when the user presses the right mouse button, the context menu will appear when the cursor is positioned on that field.

See also

The Online and Rich Client Samples projects (program TS31 and RTS31)

Reference
Attachment 
Attachment