EaxMdService.setHierarchy

Syntax

setHierarchy(report, meta, operation, callback, errorCallback);

Parameters

report. PP.Exp.EaxAnalyzer. Express report instance.

meta. Object. Operation metadata.

operation. PP.Exp.EaxHierarchiesOp. Operation type.

callback. PP.Delegate | Function. Callback function.

errorCallback. PP.Delegate | Function. Callback function on error.

Description

The setHierarchy method performs operations with a custom hierarchy.

Example

Executing the example requires that the HTML page contains the ExpressBox component named expressBox (see Example of Creating the ExpressBox Component). Express report must contain dimension with a custom hierarchy. Reset custom hierarchy:

// Get dimension with a custom hierarchy
dim = eaxAnalyzer.getDims()[2];
// Get dimension key
dmK = dim.getKey();
// Determine operation metadata
meta = {
  its: {
    Item: [{
      arg: {
        dimkey: dmK 
      },
      k: -1
    }]
  }
};
// Determine operation to execute
Op = PP.Exp.EaxHierarchiesOp.ClearAll;
// Reset hierarchy
eaxMdService.setHierarchy(eaxAnalyzer, meta, Op);

After executing the example dimension hierarchy is restored.

See also:

EaxMdService