Service: PP.Mb.PPService
The Service property defines service for working with the BI tool.
To execute the example the HTML page must contain the DimTree component named dimTree and a dimension named dim (see Example of Creating the DimensionTree Component). Let us select all elements in the tree:
dimTree.getDimTreeCtrl().getService().selectAll(dim, function (sender, asrgs)
{
dimTree.refresh();
console.log(dim.getAttributes())
});
dimTree.getDimTreeCtrl().SelectionChanged.add(function (sender, args)
{
alert("Server selection changed")
});
After executing the example all the tree elements are selected. The browser console displays an array of dimension attributes, and the following message appears on the screen: Server selection is changed.
See also: