EaxMdService.setTableGrowth

Syntax

setTableGrowth(report: PP.Exp.EaxDocument, inRow: Boolean|null, callback: PP.Delegate);

Parameters

report. Express report document.

inRow. Type of growth indicator. Parameter value is set with the PP.Exp.Ui.IndicatorType enumeration.

callback. Callback function.

Description

The setTableGrowth method sets growth indicator in express report table.

Example

Executing the example requires that the HTML page contains the ExpressBox component named expressBox (see Example of Creating the ExpressBox Component) and have a loaded table in express report working area. Set growth indicator for table rows:

// Get a service used to work with express report
var eaxMdService = expressBox.getService();
// get express report document
var eaxAnalyzer = expressBox.getSource();
// Determine growth indicator for rows
var inRow = False;
// Determine metadata for callback function
var metadata = inRow ? PP.Exp.Ui.IndicatorType.Rows : PP.Exp.Ui.IndicatorType.Columns;
// Determine arguments for callback function
var args = new PP.Mb.Ui.PropertyChangedEventArgs({   
    PropertyName: PP.Exp.Ui.ControlType.Indicator,
    Metadata: metadata,
    TypeUpdateData: [PP.Exp.Ui.ViewTypeUpdate.Table, PP.Exp.Ui.ViewTypeUpdate.PropertyBar]
});
//Determine callback function
var onPanelChanged = function (n, t) {        
    var chartView = expressBox.getDataView().getChartView();    
    t ? (chartView.DataChanged.fire(chartView, t.Args), t.Args.fireCallback(n, t)) : chartView.DataChanged.fire(chartView, t);
};
// Set growth indicator in table
eaxMbService.setTableGrowth(eaxAnalyzer, inRow, PP.Delegate(this.onPanelChanged, eaxMdService, args));
// Refresh express report
expressBox.refreshAll();

After executing the example growth indicator is set for rows of express report table:

See also:

EaxMdService