DimIndicatorMP.getPropertyName

Syntax

getPropertyName();

Description

The getPropertyName method returns type of the control currently displayed in working area of the express report.

Comments

The getPropertyName method returns an element of the PP.Exp.Ui.ControlType enumeration.

Example

Executing the example requires that the HTML page contains the ExpressBox component named expressBox (see Example of Creating the ExpressBox Component), also the Map or Bubble Chart tab must be opened. Then get an object of the DimIndicatorMP class and perform a number of operations with this object: show and hide the Indicators panel, set focus on the dimension element where the indicator is currently set, and output type of the control currently displayed in the express report working area:

// The Map or Bubble Chart tab must be the current one
var items = expressBox.getPropertyBarView().getControl().getItems();
for (var i = 0; i < items.length; i++) {
     if (items[i].getTypeName() == "DimIndicatorMP") {
         var dimIndicatorMP = items[i];
         // Display panel
         dimIndicatorMP.show();
         // Expand panel
         dimIndicatorMP.expand(True);
         // Focus on the dimension element, at which the Color indicator is currently set
         dimIndicatorMP.showIndicator("Color");
         // Output the control type displayed in the working area
         console.log(dimIndicatorMP.getPropertyName()); // "Map" will be returned\r
     }
}

Example execution brings the following results: the Indicators panel opens, focus is passed to the dimension element on which the Color indicator is set, and the output shows type of the control displayed in the working area of the express report: Map.

See also:

DimIndicatorMP