Skip to Content


We are using an analysis table in Design Studio on which users can apply filters. Many dimensions are using hierarchies, therefore, filters can be applied on hierarchy nodes. In some scenarios, the users asked to switch from the hierarchy display to a flat presentation.

With the standard context menu, the only entry which could be used to achieve this is “Select Hierarchy”. When you select “No Hierarchy” from the  hierarchy list, the analysis table will show the flat representation. But at the same time, all hierarchy node filters are discarded.

Solution approach

We enhanced the standard context menu with a custom setting to only deactivate the display hierarchy. The flat presentation is available and all hierarchy filters are maintained.


  1. Select the CONTEXT_MENU component
  2. In Properties, go to Custom menu options
  3. Create a new entry, name it “(De-)Activate Hierarchy”
  4. Click on “Edit Script” to open the editor
  5. Paste the code snippet
  6. Confirm all windows with “OK”

Code Snippet

if(me.getClickArea() == 'MEMBER' || me.getClickArea() == 'DIMENSION'){
  //only execute the actions if Member or Dimension has been clicked
var context = me.getContext();
  context.forEach(function(value, key) {
     //only continue if the dimension has a hierarchy assigned
    } else {
  // if needed, add action or message if neither Member nor Dimension has been clicked

The above snippet will turn the display hierarchy on or off depending on the current state and only if a hierarchy is assigned.

Known issues

Display: As of now (we are working with BO Design Studio 1.6) it is not possible to turn this entry on or off dynamically per component. So once you implement this, the entry will show up for every context menu. Read more on context menu tweaking here: Design Studio 1.5: View on Context Menu Parameterization

BEx query structure: When executing this on a hierarchical BEx query structure, an error message will be generated because it is a Member and a hierarchy is assigned, but deactivation of the hierarchy is not possible.

To report this post you need to login first.

Be the first to leave a comment

You must be Logged on to comment or reply to a post.

Leave a Reply