Workbook.getObsAttr

Syntax

getObsAttr (value);

Parameters

value. Sets series parameters.

Description

The getObsAttr method returns observation attributes list.

Comments

If this parameter is True - the method returns an array of series, when the parameter is False - an array of series' copies is returned.

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:

	tsService.WbkOpened.add(PP.Delegate(onWbkOpened));				
	function onWbkOpened(sender, args, q,w,e,r)
	{
		//Get a list of observation attributes
		var obs = wbk.getObsAttr(True);
		var message = "";
		for (var i = 0; i<obs.length; i++)
		{
			message = message + "Observation attribute: " + obs[i].n + '\n';
		}
		alert(message);
	}

After executing the example the list of observation attributes is determined and shown in an appropriate message.

See also:

Workbook