PeriodSeriesViewItem.getSeriesTreeView

Syntax

getSeriesTreeView();

Description

The getSeriesTreeView method returns workbook time series tree.

Comments

This method returns an object of the PP.Ui.TreeList type.

Example

To execute the example the HTML page must contain the PeriodSeriesViewItem component named periodSeriesViewItem (see Example of creating the PeriodSeriesViewItem component). Get names of time series available in the workbook, and show them in the browser console:

// Get time series tree
var tree = periodSeriesViewItem.getSeriesTreeView();
// Get tree nodes
var nodes = tree.getNodes();
for (var i = 0; i < nodes.getCount(); i++) {
    // Get node
    var node = nodes.getItem(i);
    // Get time series tree
    var text = node.getText();
    console.log(text);
};

After executing the example the browser console displays the list of time series:

Billions of National Currency|Russia|GGEI|A

Billions of National Currency|Russia|GGBXI|A

Billions of National Currency|Russia|NMS_R|A

Billions of US Dollars|Russia|BCA|A

See also:

PeriodSeriesViewItem