EaxMdService.setFixInfo

Syntax

setFixInfo(report: PP.Exp.EaxDocument, metadata: Object, callback: PP.Delegate);

Parameters

report. Express report document.

metadata. Dimension data as a JSON object with the following fields: dimKey - dimension key, value - value indicating that is is move to the group of private dimensions.

callback. Callback function.

Description

The setFixInfo method changes information about fixed express report dimensions.

Example

Executing the example requires that the HTML page contains the ExpressBox component named expressBox (see Example of Creating the ExpressBox Component). Multiple data sources must be defined for the express report. In this case the Private Dimensions tab is available.

Move the dimension with the 105 key to the private dimensions group:

// Get a service used to work with express report
var eaxMdService = expressBox.getService();
// Get express report document
var eaxAnalyzer = expressBox.getSource();
// Determine metadata for data filter
var fixInfoMetadata = {
    dimKey: 105,
    value: True
};
// Determine arguments for callback function
var args = new PP.Mb.Ui.PropertyChangedEventArgs({
    PropertyName: PP.Exp.Ui.ControlType.FixInfo,
    Metadata: fixInfoMetadata,
    TypeUpdateData: [PP.Exp.Ui.ViewTypeUpdate.DataView, PP.Exp.Ui.ViewTypeUpdate.Ribbon, 
        PP.Exp.Ui.ViewTypeUpdate.DimBar, 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);
};
// Change information about dimension fixation
eaxMdService.setFixInfo(eaxAnalyzer, fixInfoMetadata, PP.Delegate(onPanelChanged, eaxMdService, args));
// Refresh express report
expressBox.refreshAll();

After executing the example the Territories dimension with the 105 key is moved to private dimensions group.

See also:

EaxMdService