refreshSelections (fireEvent);
fireEvent. Determines whether the DataChanged event should be fired. If the parameter is set to True the event should be fired, when the parameter is False - the event is not fired. Optional parameter.
The refreshSelections method refreshes selections in dimension trees for all the attributes.
To execute the example, the page must contain the WorkbookBox component named workbookBox (see Example of Creating the WorkbookBox Component), and also add the following code in the handler, that processes document opening event:
var refreshSelectionsButt = new PP.Ui.Button({ ParentNode: document.body, //DOM parent node Content: "OK", //Text Click: PP.Delegate(onClickRefreshSelections) }); function onClickRefreshSelections() { //Get a component used to display and control workbook attributes based on the component PP.Ui.Master var navbrCr = workbookBox.getPropertyBarView().getNavBreadcrumb(); //Get a component used to display and control workbook series var breadcrumb = workbookBox.getDataView().getBreadcrumb(); //Get the first element from metaattribute collection var mattr = breadcrumb.getMetaAttributes().getItem(0); //Get attribute dimension tree var dimTree = mattr.getTree(); //Get the current displayed dimension var dim = dimTree.getSource(); //Select all dimension elements dimTree.selectAll(); //Refreshes selection in dimension trees of all attributes' dimensions navbrCr.refreshSelections(); }
After executing the example the WorkbookBox component and OK button are placed in the HTML page. Select a series tree node and click the button. All elements will be refreshed and selected in dimension trees of all attributes.
See also: