ICubeExecuteSetup.FindByKey

Syntax

FindByKey(Key): ICubeExecuteDimSetup;

Parameters

Key - dimension key.

Description

The FindByKey method searches for parameters by dimension key.

Example

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

Sub Main;

Var

Mb: IMetabase;

Rubricator: IMetabaseObject;

Cub: ICubeInstance;

Dest: ICubeInstanceDestination;

Sels: IDimSelectionSet;

CubeExSet: ICubeExecuteSetup;

DimSetup: ICubeExecuteDimSetup;

Begin

Mb := MetabaseClass.Active;

Rubricator := Mb.ItemById("FC_DEP").Bind;

Cub := Rubricator.Open(Null) As ICubeInstance;

Dest := Cub.Destinations.DefaultDestination;

Sels := Dest.CreateDimSelectionSet;

CubeExSet := Sels As ICubeExecuteSetup;

DimSetup := CubeExSet.FindByKey(60);

If DimSetup <> Null

Then Debug.WriteLine(Configurations of specified dimension were found);

Else Debug.WriteLine(Configurations of specified dimension were not found);

End If;

End Sub Main;

After executing the example parameters for dimension with the 60 key are searched. Search results are displayed in the console window. If parameters are found, they are contained in the DimSetup variable.

See also:

ICubeExecuteSetup