getSheetName (value);
value. Sets sheet key or identifier.
The getSheetName method returns sheet name by its key or identifier.
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 sheetName = wbkDocument.getSheetName(sheetKey); console.log("sheet name"); console.log(sheetName);
After executing the example, name of the workbook sheet is shown in the browser console:
sheet name
Sheet1
See also: