DataSourcesPanel Constructor

Syntax

PP.Exp.Ui.DataSourcesPanel(settings);

Parameters

settings. JSON object that contains class properties.

Description

The DataSourcesPanel constructor creates an instance of the DataSourcesPanel class.

Example

Executing the example requires that the HTML page contains the ExpressBox component named expressBox (see Example of Creating the ExpressBox Component). Then create the Data Sources tab and add it to the properties panel in express report:

// Get express report properties panel
var propBar = expressBox.getPropertyBarView().getControl();
// Create the Data Sources tab
var dataSourcesPanel = new PP.Exp.Ui.DataSourcesPanel({
    Id: PP.Exp.Ui.ControlType.DataSources,
    Source: expressBox.getSource(),
    GroupName: PP.Exp.Ui.PropertyGroups.Sheet,
    ImagePath: "../Img/",
    ViewType: PP.Ui.NavigationItem,
});
// Add the Data Sources tab to the properties panel
propBar.addItem(dataSourcesPanel);

After executing the example the Data Sources tab is created on the express report properties panel:

See also:

DataSourcesPanel