EaxAnalyzer.getDataSource

Syntax

getDataSource(key: Number);

Parameters

key. Data source key.

Description

The getDataSource method returns data source by key.

Comments

The data source key corresponds to the data source number, for example, the first connected data source has the 1 key.

If the non-existent key is specified as a parameter, the first data source is returned that has the 1 key.

Example

Executing the example requires that the HTML page contains the ExpressBox component named expressBox (see Example of Creating the ExpressBox Component). Determine the first data source object:

// Get the first data source
eaxAnalyzer.getDataSource(1);
// -> Object {k: 1, id: "CUBE_SEP", n: "Cube of indicators", vis: true, cube: Object}

After executing the example the console displays the first data source object.

See also:

EaxAnalyzer