ICubeExecutePredefinedSetup.Item

Syntax

Item(Index: Integer): ICubeExecutePredefinedOption;

Parameters

Index - parameter index.

Description

The Item method returns dimension parameter by its index.

Example

Executing the example requires a form, a button with the Button1 identifier on the form, the TabSheetBox component and the UiErAnalyzer component named UiErAnalyzer1 which is used as a data source for TabSheetBox. A working area of the time series database must be loaded to UiErAnalyzer1.

Click the button to execute the example.

Sub Button1OnClick(Sender: Object; Args: IMouseEventArgs);

Var

EaxAn: IEaxAnalyzer;

Sels: IDimSelectionSet;

CubeExSet: ICubeExecuteSetup;

j: Integer;

DimSetup: ICubeExecuteDimSetup;

PredefinedSetup: ICubeExecutePredefinedSetup;

Opt: ICubeExecutePredefinedOption;

Begin

EaxAn := UiErAnalyzer1.ErAnalyzer;

Sels := EaxAn.Pivot.Selection;

CubeExSet := Sels As ICubeExecuteSetup;

DimSetup := CubeExSet.FindById("UNITS");

If DimSetup <> Null Then

PredefinedSetup := DimSetup.Predefined;

For j := 0 To PredefinedSetup.Count - 1 Do

Opt := PredefinedSetup.Item(j);

Debug.WriteLine(Option name: + Opt.Name);

Debug.WriteLine(Option identifier: + Opt.Id);

Debug.WriteLine(Option is set: + Opt.Selected.ToString);

End For;

End If;

End Sub Button1OnClick;

After executing the example the console window displays predetermined parameters of the dimension that determines measurement units used in the time series database.

See also:

ICubeExecutePredefinedSetup