MetaHierarchy.setAttrProperty

Syntax

setAttrProperty (attrId, propName, propValue);

Parameters

attrId. Attribute identifier.

propName. Property name.

propValue. Property values.

Description

The setAttrProperty method sets value for attribute property by its ID.

Example

Executing the example requires to create a service used to work with time series, to get a workbook instance from time series database (see MetaHierarchy.ChildEls). An attribute with the identifier DL must be also available, and the following code should be added in the handler that processes document opening:

//Search at all levels the attribute with the attrId identifier and set the propValue value for for its property named propName 
hie.setAttrProperty( "DL", "isLeaf", true);

After executing the example the isLeaf property is set to True for the attribute with the ID DL: that is. the specified level is a leaf level.

See also:

MetaHierarchy