BaseCtrl.Source

Syntax

Source: PP.Mb.Object

Description

The Source method defines source of the BI tool.

Example

To execute the example the HTML page must contain the DimTree component named dimTree (see Example of Creating the DimensionTree Component). Let us rename the selected dimension item:

//key of the selected dimension item

key = dimTree.getSelectedNodes()[0];

//return JSON object of the dimension item

elem = dimTree.getDimTreeCtrl().getSource().getElem(key);

//Set the new name

elem.n = "NEW_NODE";

//Refresh the tree

dimTree.refresh();

After executing the example the name of the first selected tree node is changed.

See also:

BaseCtrl