Dimension.getAttributeIndex

Syntax

getAttributeIndex (attributeId);

Parameters

attributeId. Attribute ID.

Description

The getAttributeIndex method returns attribute index by its identifier.

Example

To execute the example, the HTML page must contain the DimensionTree component named dimTree, that uses a dictionary named dim as its source (see Example of Creating the DimensionTree Component). At least three attributes are configured for each dictionary element. Let us get the text of the last selected element by the third attribute:

attrId = dim.getAttributes()[2].id;

textLast = dim.getLastSelectedText(attrId);

textFirst = dim.getFirstSelectedText(attrId);

 

After executing the example the variables textLast and textFirst contain respectively texts of the last and first elements selected by the third attribute.

See also:

Dimension