SetKeysFilter(Selections: IDimSelectionSet);
Selections - element selection.
The SetKeysFilter method sets filtering by elements selection.
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: