DimTree.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 DimCombo component named dimCombo (see Example of the DimCombo Component Layout). Get identifier by the Order preset value:

// Get tree view
tree = dimCombo.getTreeView();
// Get identifier by preset value
console.log("Identifier of the Ident preset value: " + tree.getPredefinedAttributeId("Ident"));

As a result, the console displays identifier by the Ident preset value:

Identifier of the Ident preset value: ID

See also:

DimTree