EaxAnalyzer.getIsDmHier

Syntax

getIsDmHier(key: Number): Number;

Parameters

key. Checked dimension key.

Description

The getIsDmHier method returns key of the dimension, for which express report dimension with the specified key is alternative hierarchy.

Comments

The method returns Null if the specified express report dimension is not alternative hierarchy.

Example

Executing the example requires that the HTML page contains the ExpressBox component named expressBox (see Example of Creating the ExpressBox Component). Determine whether express report dimensions are alternative hierarchies of other dimensions:

eaxAnalyzer = expressBox.getSource();
// Get array of express report dimensions
dims = eaxAnalyzer.getDims();
// Check all dimensions
for (i = 0; i < dims.length; i++) {
    // Get dimensions from array
    dim = dims[i];
    // Get dimension key
    key = dim.getKey()
    // Return Null if the specified dimensions is not alternative hierarchy
    if (eaxAnalyzer.getIsDmHier(key) == null)
        console.log("Dimension " + dim.getName() + " if not alternative hierarchy of other dimension, parent dimension is missing"); 
    // If the specified dimension is alternative hierarchy, return parent dimension key
    else console.log("Dimension " + dim.getName() + " has parent dimension with key " + eaxAnalyzer.getIsDmHier(key))
}

After executing the example the browser console displays information on express report dimensions.

See also:

EaxAnalyzer