EaxAnalyzer.getDim

Syntax

getDim (key, sourceKey);

Parameters

key. Dimension key.

sourceKey. Dimension source key.

Description

The getDim method returns dimension by its key and the key of its source.

Comments

The method returns an object of the PP.Mb.DimSource type.

Example

Executing the example requires that the HTML page contains the ExpressBox component named expressBox (see Example of Creating the ExpressBox Component).  Show name of the dimension with the 0 key, or show a message that this dimension is not found:

var eaxAnalyzer = expressBox.getSource();
// Get dimension by its key
var dim = eaxAnalyzer.getDim(0);
// Show dimension name if the dimension is found
if (dim) {
    console.log(dim.getName())
} else {
    console.log("This dimension could not be found.");
}

After executing the example the browser console displays name of the dimension with the 0 key if the express report contains such a dimension. Otherwise it shows a message that the dimension is not found.

See also:

EaxAnalyzer