Start of Content Area

This graphic is explained in the accompanying text DEMO_CONTEXT_MENU_STATIC  Locate the document in its SAP Library structure

The example application DEMO_CONTEXT_MENU_STATIC demonstrates what options are available in the static variant of the context menu.

A table with flight information is displayed in the example application. There are two context menus that have been declared static. The ContextMenuBehaviour is set to "provide" in all columns in FLIGHTS_TABLE, and BOOK_MENU is entered as the ContextMenuID. This means that the BOOK_MENU context menu is displayed when the user opens the context menu on the cell editor, the column header, or on the column itself.
The default value for ContextMenuBehaviour is "inherit". This means that the parent search continues until one is found that is a provider. The other context menu is used on group DETAILS_GROUP (and therefore everywhere within the group too).

You do not actually have to define an implementation in WDDOONCONTEXTMENU at all. In this application there is one there anyhow since this is required for the radio buttons. The Hook method checks what seats are still available for which classes (economy, business, first), since the option for booking is only available if there are free seats. The LeadSelection is also set on any buttons the user has clicked.

The application developer then only has to implement the relevant Actionhandler methods.

 

 

End of Content Area