IMetaDictionaryLookup.SetKeysFilterRaw

Syntax

SetKeysFilterRaw(Attribytes: Array; Selections: Array);

Parameters

Attributes - an array of element names.

Selections - an array of element selections.

Description

The SetKeysFilterRaw method sets filtering by a selection in certain attributes.

Example

Executing the example requires that the repository contains a time series database with the OBJ_FC identifier.

Sub Main;

Var

MB: IMetabase;

RubDesc: IMetabaseObjectDescriptor;

RubrIn: IRubricatorInstance;

DictInst: IMetaDictionaryInstance;

MetaDLookup: IMetaDictionaryLookup;

i: Integer;

Sel: Array Of Variant;

Att: Array Of String;

Dest: ICubeInstanceDestinations;

DimSS: IDimSelectionSet;

DimSet: IDimSelection;

Begin

MB := MetabaseClass.Active;

RubDesc := MB.ItemById("OBJ_FC");

RubrIn := RubDesc.Open(Null) As IRubricatorInstance;

DictInst := RubrIn.GetDictionary(RubricatorDictionary.FactsValues);

MetaDLookup := DictInst.CreateLookup("");

Dest := (RubrIn As ICubeInstance).Destinations;

DimSS := Dest.DefaultDestination.CreateDimSelectionSet;

Sel := New Variant[DimSS.Count];

Att := New String[2];

Att[0] := "DT";

Att[1] := "UNIT";

i := 0;

For Each DimSet In DimSS Do

DimSet.SelectAll;

Sel[i] := DimSet;

i := i + 1;

End For;

MetaDLookup.SetKeysFilterRaw(Att, Sel);

End Sub Main;

After executing the example filtering by elements selection for the attributes DT and UNIT is set.

See also:

IMetaDictionaryLookup