IMDCalculationDatasetInstance.DimensionSet

Syntax

DimensionSet: IDimSelectionSet;

Description

The DimensionSet property returns the set of dimensions of data source or data consumer instances.

Example

Executing the example requires that the repository contains multidimensional calculation with the MDCALC identifier.

Sub Main;

Var

MB: IMetabase;

Calc: IMDCalculation;

CalcInst: IMDCalculationInstance;

Ap: ICubeSelectionControlApply;

Se: IDimSelection;

Begin

MB := MetabaseClass.Active;

Calc := MB.ItemById("MDCALC").Bind As IMDCalculation;

CalcInst := (Calc As IMetabaseObject).Open(Null) As IMDCalculationInstance;

Ap := CalcInst.CreateApply(CalcInst.Destination);

Ap.SourceSelection := CalcInst.Sources.Item(0).DimensionSet;

Debug.WriteLine("---Source---");

For Each Se In Ap.SourceSelection Do

Debug.WriteLine(Se.Dimension.Name);

End For;

CalcInst.Apply(Ap);

Debug.WriteLine("---Result---");

For Each Se In Ap.ResultSelection Do

Debug.WriteLine(Se.Dimension.Name);

End For;

End Sub Main;

After executing the example the object, controlling parameters of multidimensional calculation via a selection, is created. This object is executed. The source list of dimensions and the output dimensions list are displayed.

See also:

IMDCalculationDatasetInstance