Show TOC Start of Content Area

Procedure documentation Utilizing ContextMenus  Locate the document in its SAP Library structure

Note

A ContextMenu opens when the user clicks the secondary mouse button.

Use

The term “context menu” denotes the fact that the menu content depends on the context in which is it opened. This context is composed of

Procedure

Creating a ContextMenu

...

       1.      In the Outline window of your View Designer, select Context Menus, click the secondary mouse button and choose Create Context Menu

This graphic is explained in the accompanying text

       2.      Insert the MenuItems into your ContextMenu. The Outline will look similar to the screenshot below:

This graphic is explained in the accompanying text

       3.      Build up your Menu as usual i. e. assign the relevant actions to the MenuActionItems, bind the relevant properties to the MenuCheckBoxes and MenuRadioButtons and so on…

       4.      Select the UI Element to which you want to assign the ContextMenu, select the contextMenuId property and click This graphic is explained in the accompanying text. A drop down list opens where you can select the relevant ContextMenu.

This graphic is explained in the accompanying text

Note

If you don’t see the properties contextMenuBehaviour and contextMenuId, you have to enable the advanced properties by clicking the Show Advanced Properties icon as illustrated in the figure below:

This graphic is explained in the accompanying text

Result

If the user clicks the secondary mouse button, the ContextMenu will open according to the UI element where the mouse cursor is placed.

This graphic is explained in the accompanying text

End of Content Area