WbkDocument.getSheet

Syntax

getSheet (value);

Parameters

value. Sets sheet key or identifier.

Description

The getSheet method returns sheet object by its key or ID.

Example

To execute the example, create a service to work with time series, get a workbook instance from the time series database, and determine key of the active sheet (see WbkDocument.ActiveSheetKey) and add the following code in the handler that processes document opening:

	var sheet = wbkDocument.getSheet(sheetKey);
	console.log("sheet object by key");
	console.log(sheet);

After executing the example the browser console displays JSON object of document sheet:

sheet object by key

PP.TS.Workbook {_WbkMetadata: Object, _Events: Object, ChangedSeries: PP.Delegate, WorkbookMdLoaded: PP.Delegate, _SelectedSeries: Array[0]…}

See also:

WbkDocument