EaxAnalyzer.canMapDrillUp

Syntax

canMapDrillUp();

Description

The canMapDrillUp method checks if it is possible to drill up the selection hierarchy in the express report Map view.

Comments

The method returns True if it is possible to drill selection one level up the hierarchy in the Map view, and False if it is not possible.

Selection can be drilled up the hierarchy if the number of map territory detailings is greater than zero.

Example

Executing the example requires that the HTML page contains the ExpressBox component named expressBox (see Example of Creating the ExpressBox Component). Check if the selection can be drilled up the hierarchy and show appropriate message:

var eaxAnalyzer = expressBox.getSource(); 
if (eaxAnalyzer.canMapDrillUp()) {   
    console.log("Drilling selection up the hierarchy in the map is possible."); 
} else {
    console.log("Drilling selection up the hierarchy in the map is not possible.");
}

After executing the example the browser console displays a message that it is not possible to drill selection one level up. This happens because the loaded map has no detailings.

See also:

EaxAnalyzer