MetaHierarchy.getAttributeById

Syntax

getAttributeById (value);

Parameters

value. Sets attribute identifier.

Description

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

Example

Executing the example requires to create a service used to work with time series, to get a workbook instance from time series database (see MetaHierarchy.ChildEls), the attribute with the DL identifier should also be present. Add the following code in the document open event handler:

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

After executing the example the browser console displays attribute by its identifier:

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

See also:

MetaHierarchy