Workbook.getSerie

Syntax

getSerie (key);

Parameters

key. Sets series key.

Description

The getSerie method returns a series from the cache of loaded series by its key.

Example

To execute the example the page must contain the WorkbookBox component named workbookBox (see Example of Creating the WorkbookBox Component). Get ID of selected series by its key, by running the following code in the browser console:

	var source = workbookBox.getSource().getActiveSheet();//return instance of the PP.TS.Workbook class
	var serie = source.getSerie(source.getSelectedSeries()[0].k)//get the first selected series by key
	alert("Selected series identifiers "+ serie.id)//output selected series identifier

After executing the example a message that contains ID of the first selected series appears in the screen.

See also:

Workbook