MetaHierarchy.getAttributeById

Syntax

getAttributeById (value);

Parameters

value. Sets attribute identifier.

Description

The getAttributeById method determines a list of attributes by ID value.

Example

To execute the example, create a service for working with time series, get a workbook instance from the time series database (see MetaHierarchy.ChildEls), and and attribute with the identifier DL must be available. Add the following code in the handler that processes document opening:

console.log("Get attribute by its identifier");
var attr = hie.getAttributeById("DL");
console.log(attr);

After executing the example, the browser console shows attribute by its identifier:

Object {k: 4, id: "DL", n: "Period", vis: True, dim: Object…}

See also:

MetaHierarchy