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 ID | Context Entry |
---|---|
CONTEXT_MENU_sort | Sort |
CONTEXT_MENU_display | Display |
CONTEXT_MENU_attributes | Attributes |
CONTEXT_MENU_expand | Expand |
CONTEXT_MENU_collapse | Collapse |
CONTEXT_MENU_expandLevel | Expand Level |
CONTEXT_MENU_hierachySelect | Select Hierarchy |
CONTEXT_MENU_totals | Show Totals |
CONTEXT_MENU_keepFilters | Keep Filters |
CONTEXT_MENU_keepFilterAxis | Keep Filter Axis |
CONTEXT_MENU_filterSwap | Swap Filter |
CONTEXT_MENU_selectFilte | Select Filter |
CONTEXT_MENU_removeFilter | Remove Filter |
CONTEXT_MENU_suppressZeros | Suppress Zeros |
CONTEXT_MENU_drilldownBy | Drill down by |
CONTEXT_MENU_swapWith | Swap With |
CONTEXT_MENU_removeDrilldown | Remove Drilldown |
CONTEXT_MENU_swapAxis | Swap Axis |
CONTEXT_MENU_backOneStep | Back one step |
CONTEXT_MENU_number_format | Number format |
CONTEXT_MENU_calculations | Calculations |
Have fun!