EaxDimBarView.getDimComboView

Syntax

getDimComboView(dimKey, sourceKey);

Parameters

dimKey. Dimension key.

sourceKey. Data source key.

Description

The getDimComboView method returns view of the drop-down menu for the specified dimension.

Example

Executing the example requires that the HTML page contains the ExpressBox component named expressBox (see Example of Creating the ExpressBox Component). Then get view of drop-down menu for one of the dimensions, show name of the element selected in this menu, and disable multiple selection:

var dimBar = expressBox.getPropertyBarView().getDimBarViewPanel();
// Display panel
dimBar.show();
// Expand panel
dimBar.expand(True);
// Get first dimension key
var dimKey = dimBar.getCurrentState().dims.its.it[0].k;
// Get data source key
var srcKey = expressBox.getSource().getKey();
// Get drop-down list view with the dimKey key
var combo = dimBar.getDimComboView(dimKey, srcKey.toString()).getControl();
// Get the selected element in the drop-down list
var name = combo.getContent();
console.log(dimKey + ": " + name);
// Get tree of dimensions
var tree = dimBar.getDimTreeView(dimKey, srcKey.toString()).getControl();
// Prohibit multiple selection in the drop-down list
tree.setMultiSelect(False);

After executing the example multiple selection is disabled in the drop-down menu with the 1646 key, and the browser console displays name of selected element:

1646: Albania .. Saudi Arabia (132)

See also:

EaxDimBarView