EaxDataBox.getService

Syntax

getService();

Description

The getService method returns service used to work with express reports.

Example

Executing the example requires that the HTML page contains the EaxDataBox component named eaxDataBox (see Example of Creating the EaxDataBox Component). Add a new sheet named Indicators:

// Get a service used to work with express reports
var service = eaxDataBox.getService();
// Get data 
var doc = eaxDataBox.getSource();
// Set a new sheet add event handler
onSheetAdded = function (sender, args) {
    eaxDataBox.DataChanged.fire(this, new PP.Mb.Ui.PropertyChangedEventArgs({
        PropertyName: PP.Exp.Ui.ControlType.DataView,
        Metadata: null,
        TypeUpdateData: [PP.Exp.Ui.ViewTypeUpdate.Ribbon, PP.Exp.Ui.ViewTypeUpdate.PropertyBar, 
            PP.Exp.Ui.ViewTypeUpdate.Title]
    }));
};
// Add a new sheet to document
service.addSheet(doc, "Indicators", True, PP.Delegate(onSheetAdded, doc));
 
// Then refresh express report
eaxDataBox.refreshAll();

After executing the example a new sheet named Indicators is added to the document:

ExpressBox.getService

See also:

EaxDataBox