EaxMdService.setAgrMethod

Syntax

setAgrMethod(report: PP.Exp.EaxDocument, pvtAggregationOperation: PP.Exp.Ui.PvtAggregationOperation, callback: PP.Delegate)

Parameters

report. Express report document.

pvtAggregationOperation. Aggregation function in table fixed dimensions.

callback. Callback function.

Description

The setAgrMethod method sets data aggregation function in fixed dimensions of table.

Example

Executing the example requires that the HTML page contains the ExpressBox component named expressBox (see Example of Creating the ExpressBox Component). Enable data summation in express report fixed dimensions:

// Get a service used to work with express report
var eaxMdService = expressBox._Service;
// Get express report document
var eaxAnalyzer = expressBox.getSource();
// Determine callback function
var onSetAgrMethod = function (sender, args) {
    // Refresh express report
    expressBox.getDataView().refreshAll();
};
// Set report data aggregation function
eaxMdService.setAgrMethod(eaxAnalyzer, PP.Exp.Ui.PvtAggregationOperation.Sum, PP.Delegate(onSetAgrMethod, this));

After executing the example data aggregation in fixed report dimensions is set in the Data tab of the express report properties panel. AutoSum mode is selected as the aggregation method.

EaxMdService | EaxMdService.setMainControlElements