DimTreeView.getPredefinedAttributeId

Syntax

getPredefinedAttributeId(id: String);

Parameters

id. Preset identifier value.

Description

The getPredefinedAttributeId method returns identifier of attribute by predefined identifier value.

Comments

If the preset value is not specified, the method returns the NAME value.

Example

To execute the example, the HTML page must contain the DimTree component named dimTree (see Example of Creating the DimTree Component). Get identifier by the Order preset value:

// Get identifier by the preset value
console.log("Identifier of the Order preset value: " + dimTree.getPredefinedAttributeId("Name"));

As a result the console displays identifier by the Order preset value:

Identifier of the Order preset value: ORDER

See also:

DimTreeView