Workbook.hasRubrs

Syntax

hasRubrs ();

Description

The hasRubrs method determines whether the workbook source is a time series database.

Comments

This method returns True if the workbook source includes a time series database, otherwise it returns False.

Example

To execute the example, the page must contain the WorkbookBox component named workbookBox (see Example of Creating the WorkbookBox Component), and also add the following code in the handler, that processes document opening event:

	var source = workbookBox.getSource().getActiveSheet();//return instance of the PP.TS.Workbook class
	//Get whether workbook contains time series database
	var hasRubrs = source.hasRubrs();
	if(hasRubrs)
	alert("Time series database is a source of the specified workbook");
	else
	alert("Time series database is not a source of the specified workbook");

After executing the example the page will contain the WorkbookBox component, and a message will be shown indicating if the source of specified workbook is a time series database.

See also:

Workbook