IMetaDictionaryLookup.SetKeysFilter

Syntax

SetKeysFilter(Selections: IDimSelectionSet);

Parameters

Selections - element selection.

Description

The SetKeysFilter method sets filtering by elements selection.

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;

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;

For Each DimSet In DimSS Do

DimSet.SelectAll;

End For;

MetaDLookup.SetKeysFilter(DimSS);

End Sub Main;

After executing the example filtering by elements selection is set.

See also:

IMetaDictionaryLookup