DataSourcesPanel.OpenMode

Syntax

OpenMode: PP.Exp.EaxDataSourceOpenMode

Description

The OpenMode property sets cube extraction mode: with a saved view (default) or only the data cube.

Example

Executing the example requires that the HTML page contains the EaxPropertyBar component named eaxPropBar (see Example of EaxPropertyBar and EaxGrid Components Collocation). Then get a DataSourcesPanel object, set cube extraction mode, set data source for the corresponding tab, show, refresh and get this tab:

// Get the Data Source tab
var dataSourceParamsPanel = eaxPropBar.getDataSourcesPanel();
// Extract only a data cube
PP.Object.defineProps(PP.Exp.Ui.DataSourceParamsPanel, ["OpenMode"], PP.Exp.EaxDataSourceOpenMode.None);
// Set data source
PP.Object.defineProps(PP.Exp.Ui.DataSourceParamsPanel, ["Source"], eaxPropBar.getSource());
// Show tab
dataSourceParamsPanel.show();
// Expand the tab
dataSourceParamsPanel.expand(True);
// Get array that contains keys of repository objects, 
// selected as express report data source
console.log(dataSourceParamsPanel.getCurrentState());

After executing the example the mode of cube extraction is changed and the data source is set for the Data Sources tab.

See also:

DataSourcesPanel