Workbook.getRubsOdId

Syntax

getRubsOdId (value);

Parameters

rubKey. Sets time series database key.

Description

The getRubsOdld method returns moniker for the time series database with specified key.

Example

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

var rubkey;
//Get time series database
tsService.WbkOpened.add(PP.Delegate(onWbkOpened));
function onWbkOpened(sender, args, q,w,e,r)
	{
		var rub = wbk.getRub();
		//Get key of time series database
		rubkey = rub.meta.obInst.obDesc.k;
	}
var getRubsOdIdButt = new PP.Ui.Button({
	ParentNode: document.body, //DOM parent node
	Content: "Output moniker", //Text      
	Click: PP.Delegate(onClickGetRubsOdId)     
}); 
function onClickGetRubsOdId(){
	alert(wbk.getRubsOdId(rubkey));
}

After executing the example a button named Show Moniker is placed in the HTML page. After clicking the button a message containing moniker of time series database appears in the screen.

See also:

Workbook