3 Replies Latest reply on Oct 22, 2013 12:44 PM by 1047836 Branched from an earlier discussion.

    Re: apply transformations to Hierarchy

    Dimitar Slavov-Oracle

      HI,

      Try this :

       

      mdModels = model.getDesign().getMultidimensionalDesigns().toArray();
      for (var t = 0; t<mdModels.length;t++){
           mdModel = mdModels[t];
           hierarchies = mdModel.getHierarchySet().toArray();
           for (var h = 0; h<hierarchies.length;h++){
                hierarchy = hierarchies[h];
                hierarchy.setName('your name');
           }
      }
      

       

      When creating script in the panel, it does not matter if you'll choose relational or logical model. It is only start point.