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

       2.      Insert the desired MenuItems into your ContextMenu and specify the relevant properties and actions. The Outline will look similar to the screenshot below:

This graphic is explained in the accompanying text

       3.      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, 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

       4.      Set the contextMenuBehaviour property to provide.

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