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 UserProc;
Var
    MB: IMetabase;
    Calc: IMDCalculation;
    CalcInst: IMDCalculationInstance;
    Apply: ICubeSelectionControlApply;
    Sel: IDimSelection;
Begin
    MB := MetabaseClass.Active;
    Calc := MB.ItemById("MDCALC").Bind As IMDCalculation;
    CalcInst := (Calc As IMetabaseObject).Open(NullAs IMDCalculationInstance;
    Apply := CalcInst.CreateApply(CalcInst.Destination);
    Apply.SourceSelection := CalcInst.Sources.Item(0).DimensionSet;
    Debug.WriteLine("---Source---");
    For Each Sel In Apply.SourceSelection Do
        Debug.WriteLine(Sel.Dimension.Name);
    End For;
    CalcInst.Apply(Apply);
    Debug.WriteLine("---Result---");
    For Each Sel In Apply.ResultSelection Do
        Debug.WriteLine(Sel.Dimension.Name);
    End For;
End Sub UserProc;

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

See also:

IMDCalculationDatasetInstance