EaxMdService.setCustomDimension

Syntax

setCustomDimension(report, cdElementArgs, operation, callback, errorCallback);

Parameters

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

cdElementArgs. Object. Operation metadata. Array of the tns_PP_SOM: CDActionArg elements.

operation. PP.Exp.CDOp. Operation type.

callback. PP.Delegate | Function. Callback function.

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

Description

The setCustomDimension method executes operations with custom hierarchy elements.

Example

Executing the example requires that the HTML page contains the ExpressBox component named expressBox (see Example of Creating the ExpressBox Component).

// Get dimension
dim = eaxAnalyzer.getDims()[3];
// Get dimension key
dimKey = dim.getKey();
// Determine operation metadata
Elem = [{
 dimkey: dimKey
}];
// Determine executed operation
Op = PP.Exp.CDOp.Add;
// Reset hierarchy
eaxMdService.setCustomDimension(eaxAnalyzer, Elem, Op);
// Refresh tree of elements
barV = expressBox.getPropertyBarView();
panel = barV.getActivePanel();
panel.refresh();

After executing the example a new element is added.

See also:

EaxMdService