PropertyChangedEventArgs Constructor

Syntax

PropertyChangedEventArgs(settings);

Parameters

settings. JSON object that contains values of class properties.

Description

The PropertyChangedEventArgs constructor creates an instance of the PropertyChangedEventArgs class.

Example

To execute the example, the HTML page must contain the component named expressBox (see Example of Creating the ExpressBox ComponentExpressBox component named expressBox (see Example of Creating the ExpressBox Component) and with the loaded table in the express report workspace. Hide headers of this table and update the report to show dimensions:

// Get express report table view
var gridView = expressBox.getDataView().getGridView();
// Process the PropertyChanged event
gridView.PropertyChanged.add(function (sender, args) {
    if (!args.isCanceled()) {
        // If the event is cancelled, invoke callback function
        args.fireCallback(sender, args);
    };
});
// get a service used to work with express report
var eaxMdService = expressBox._Service;
// Get express report
var eaxAnalyzer = expressBox.getSource();
// Determine metadata
var metadata = False; // Hide express report table titles
// Determine callback functions
var onPropertyChanged = function (sender, args) {
    // Fire the PropertyChanged event        gridView.PropertyChanged.fire(gridView, args.Args); }; var onPostPropertyChanged = function (sender, args) {             // Refresh express report     expressBox.refreshAll(); }; // Determine arguments for callback function var args = new PP.Mb.Ui.PropertyChangedEventArgs({     Callback: PP.Delegate(this.onPostPropertyChanged, eaxMdService, args),     // Specify that express report table title properties are changed     PropertyName: PP.Exp.Ui.ControlType.Headers,     // Specify that express report table titles must be hidden     Metadata: metadata,     // Data model can be refreshed via the service     ModelUpdateData: PP.Exp.Ui.ModelUpdate.Service,     // It is required to refresh express report table and properties panel     TypeUpdateData: [PP.Exp.Ui.ViewTypeUpdate.Table, PP.Exp.Ui.ViewTypeUpdate.PropertyBar] }); // Set if table titles are visible eaxMdService.setTabSheetHeaders(eaxAnalyzer, metadata,     PP.Delegate(this.onPropertyChanged, eaxMdService, args));

After executing the examples headers of the express report table are hidden and the report is updated:

See also:

PropertyChangedEventArgs