ParametersDataSource.ControlChanged

Syntax

ControlChanged: function (sender, args);

Parameters

sender. Event source.

args. Event information.

Description

The ControlChanged event occurs on changing component properties.

Example

Executing the example requires that the HTML page contains the ParametersDialog component named parametersDialog (see Example of Creating the ParametersDialog Component). Handle the ControlChanged event for tabs of the Parameters dialog box:

// Get tabs of the Parameters dialog box
var items = parametersDialog._ViewItems;for(var i = 0; i < items.length; i++) {
    var item = items[i];
    switch(item.getTypeName()) {
        case "PP.Exp.Ui.ParametersDataSource":
        // Handle the ControlChanged event for the Data Sources Parameters tab
        item.ControlChanged.add( function() { 
            // Refresh all contents of the tab
            item.refreshAll();
        });
        break;
        case "ParametersDimensionsView":
        // Handle the ControlChanged event for the Dimensions tab
        item.ControlChanged.add( function() { 
            // Refresh all contents of the tab
            item.refreshAll();
        });     
        break;
    }
}

After executing the example on firing the event all contents of the Data Sources Parameters and Dimensions tab in the Parameters dialog box are refreshed.

See also:

ParametersDataSource