ParametersDialog.getAllViewsPropChangedObjects

Syntax

getAllViewsPropChangedObjects();

Description

The getAllViewsPropChangedObjects method returns changes for each of the tabs in the Parameters dialog box.

Comments

The method returns a JSON object with the following parameters: DataSourceParams - array of ParametersDataSource objects, and SI_DimsView - array of ParametersDimensionsView objects.

Each element of the specified arrays has the PP.Mb.Ui.PropertyChangedEventArgs type containing the following properties: PropertyName - property name as an element of the PP.Exp.Ui.ControlType enumeration, Metadata - metadata, TypeUpdateData - updated data type that is set by means of the PP.Exp.Ui.ViewTypeUpdate enumeration.

Example

Executing the example requires that the HTML page contains the ParametersDialog component named parametersDialog (see Example of Creating the ParametersDialog Component). Determine which properties of the Parameters dialog box tabs have changed:

// Get a set of object states of tabs of the Parameters dialog box
var changedObjects = parametersDialog.getAllViewsPropChangedObjects();
// Get names of changed properties:
var propertyName = "";
propertyName = changedObjects.SI_DataSourceParams[0]._PropertyName;
console.log("Changed property of the Data Sources Parameters tab: " + propertyName);
propertyName = changedObjects.SI_DimsView[0]._PropertyName;
console.log("Changed property of the Data Sources Parameters tab: " + propertyName);

After executing the example the browser console displays names of changed properties for the tabs Data Sources Parameters and Dimensions:

Changed property of the Data Sources Parameters tab: DataSourceParams
Changed property of the Data Sources Parameters tab: DimOrder

See also:

ParametersDialog