getSectionId();
The getSectionId method returns key of the Data Sources Parameters tab in the Parameters dialog box.
Executing the example requires that the HTML page contains the ParametersDialog component named parametersDialog (see Example of Creating the ParametersDialog Component). Get keys for the Data Sources Parameters and Dimensions tabs:
// Get tabs of the Parameters dialog box var items = parametersDialog._ViewItems; for(var i = 0; i < items.length; i++) { var item = items[i]; var key = item.getSectionId(); switch(item.getTypeName()) { case "PP.Exp.Ui.ParametersDataSource": console.log("Key of the Data Sources Parameters tab: " + key); break; case "ParametersDimensionsView": console.log("Key of the Dimensions tab: " + key); break; } }
After executing the example the browser console displays keys for tabs of the Parameters dialog box:
Key of the Data Sources Parameters tab: SI_DataSourceParams
Key of the Dimensions tab: SI_DimsView
See also: