IMetaDictionaryLookup.AppendKeysFilter

Syntax

AppendKeysFilter(Selections: IDimSelectionSet; Operator_: OrmLogicalOperator);

Parameters

Selections. Element selection.

Operator_. Parameters of selection applying.

Description

The AppendKeysFilter method adds 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.AppendKeysFilter(DimSS, OrmLogicalOperator.Or_);

End Sub Main;

After executing the example filtering by elements selection is added.

See also:

IMetaDictionaryLookup