IMetaDictionaryLookup.AppendKeysFilterRaw

Syntax

AppendKeysFilterRaw(Attributes: Array; Selections: Array; Operator_: OrmLogicalOperator);

Parameters

Attributes. Array of element names.

Selections. Array of element selections.

Operator_. Parameters of selection applying.

Description

The AppendKeysFilterRaw method adds 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.AppendKeysFilterRaw(Att, Sel, OrmLogicalOperator.Or_);

End Sub Main;

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

See also:

IMetaDictionaryLookup