TSService.getRubMd

Syntax

getRubMd (wbk, rubKey, callback, pattern);

Parameters

wbk. Sets workbook, an instance of the Workbook class.

rubKey. Sets time series database key.

callback. Sets handler for operation execution end

pattern. Sets object that indicates which metadata is to be received.

Description

The getRubMd method sends a request to get metadata for the source with the rubKey key.

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 wbk = args.Workbook;
	//Get factor directory key
	var rubKey = wbk.getWbkMetadata().rubrs.def.k;
	//Send a request for getting metabase
	tsService.getRubMd(wbk, rubKey, PP.Delegate(onGetRubMd, this, { Workbook: wbk, RubKey: rubKey }));     
	//getRubMd method execution end event handler
	function onGetRubMd(sender, args){
		alert(args.ResponseText);
	}

After executing the example the WorkbookBox component is placed on the HTML page, a request to get metadata is sent, and information about this request is shown in appropriate message.

See also:

TSService