Technology Blogs by SAP
Learn how to extend and personalize SAP applications. Follow the SAP technology blog for insights into SAP BTP, ABAP, SAP Analytics Cloud, SAP HANA, and more.
cancel
Showing results for 
Search instead for 
Did you mean: 
former_member189544
Contributor

In Design Studio we have the nice context menu on a standard crosstab. In BEx WAD a developer can specify, which items should be available to the user in the context menu. In Design Studio this is not possible using standard functionality of the context menu.

Fortunately there is a way to do the same in Design Studio, utilizing a custom CSS in your application.

The entries of the standard context menu are tagged with specific IDs, that can be used to show or hide them using CSS.

If you want to hide e.g. the entry "Sort" inside the context menu, you could create a custom CSS file for your application that contains following code:

#CONTEXT_MENU_sort { display: none; }

The following table shows all available IDs for the context menu, that can be used inside a CSS file to hide/show them:

Context Menu Entry IDContext Entry
CONTEXT_MENU_sortSort
CONTEXT_MENU_displayDisplay
CONTEXT_MENU_attributesAttributes
CONTEXT_MENU_expandExpand
CONTEXT_MENU_collapseCollapse
CONTEXT_MENU_expandLevelExpand Level
CONTEXT_MENU_hierachySelectSelect Hierarchy
CONTEXT_MENU_totalsShow Totals
CONTEXT_MENU_keepFiltersKeep Filters
CONTEXT_MENU_keepFilterAxisKeep Filter Axis
CONTEXT_MENU_filterSwapSwap Filter
CONTEXT_MENU_selectFilteSelect Filter
CONTEXT_MENU_removeFilterRemove Filter
CONTEXT_MENU_suppressZerosSuppress Zeros
CONTEXT_MENU_drilldownByDrill down by
CONTEXT_MENU_swapWithSwap With
CONTEXT_MENU_removeDrilldownRemove Drilldown
CONTEXT_MENU_swapAxisSwap Axis
CONTEXT_MENU_backOneStepBack one step
CONTEXT_MENU_number_formatNumber format
CONTEXT_MENU_calculationsCalculations
CONTEXT_MENU_jumpJump to

Have fun!

11 Comments