getPredefinedAttributeId(id: String);
id. Preset identifier value.
The getPredefinedAttributeId method returns identifier of attribute by predefined identifier value.
If the preset value is not specified, the method returns the NAME value.
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: