EaxDimBarMasterPanel.CountDimsInPos

Syntax

CountDimsInPos: Number

Description

The CountDimsInPos property sets and gets the number of dimensions in the position.

Comment

Value of the CountDimsInPos property can also be set using the setCountDimsInPos method and obtained using the getCountDimsInPos method.

Example

Executing the example requires that the HTML page contains the ExpressBox component named expressBox (see Example of Creating the ExpressBox Component). Get information on a selection wizard dimension: its key, name, position index, position, and the total number of dimension in this position:

var dimBarMaster = expressBox.getPropertyBarView().getDimBarMasterView();
// Display the panel
dimBarMaster.show();
// Panel index
var itemIndex = 0;
var hlDim = dimBarMaster.getItem(itemIndex);
// Get first dimension key
var dimKey = hlDim.getData();
var masterPanel = dimBarMaster.getPanelByDimKey(dimKey);
// Get panel data source
var source = masterPanel.getSource();
console.log("Dimension key: " + source.getKey() + ", name: " + source.getName() + ";");
console.log("Number of dimensions in the occupied position: " + masterPanel.getCountDimsInPos() + ";");
console.log("Index of the position where the dimension is placed: " + masterPanel.getIndexPosition()  + ";");
console.log("Dimension position: " + masterPanel.getPvtPosition()  + ".");

After executing the example the user gets information on the Calendar dimension with the 109 key:

Dimension key: 2038, name: Calendar.

Number of dimensions in the position: 2.

Index of dimension position: 0.

Dimension position: Left.

See also:

EaxDimBarMasterPanel