MetaHierarchy.setSort

Syntax

setSort (metaAttrId, isActive, desc, dimAttrId);

Parameters

metaAttrId. Metaattribute identifier

isActive. Determines whether to enable sorting: if this parameter is True sorting is enabled, if it is False sorting is disabled.

desc. Sorting: True - descending sorting, False - ascending sorting, null - default.

dimAttrId. Identifier of dimension attribute, by value of which the data is to be sorted.

Description

The setSort method sets sorting in the series tree.

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) and add the following code in the document open event handler:

console.log("Set sorting in series tree");
hie.setSort("DL", True, True, 1);

After executing the example sorting is set for the series tree in browser console.

See also:

MetaHierarchy