Workbook.getSerieByIndexAndParent

Syntax

getSerieByIndexAndParent(index, parentKey);

Parameters

index. Number. Child series index.

parentKey. Number. Parent series key.

Description

The getSerieByIndexAndParent method returns a series by index of certain parent.

Comments

If a parent series is not set, the series is searched in the root nesting level.

Example

Executing the example requires that HTML page contains the WorkbookBox component named workbookBox (see Example of Creating the WorkbookBox Component).

// Get third series key
serie = wbk.getSeries()[2];
key = serie.k;
// Get third series first child
wbk.getSerieByIndexAndParent(0, key);	

After executing the example the third series first child is obtained.

See also:

Workbook