ICubeExecutePredefinedOption.Selected

Syntax

Selected: Boolean;

Description

The Selected property determines whether the specified parameter is used.

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 that 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
    Eax: IEaxAnalyzer;
    Sels: IDimSelectionSet;
    CubeExSet: ICubeExecuteSetup;
    DimSetup: ICubeExecuteDimSetup;
    PredefinedSetup: ICubeExecutePredefinedSetup;
    Opt: ICubeExecutePredefinedOption;
    i: Integer;
Begin
    Eax := UiErAnalyzer1.ErAnalyzer;
    Sels := Eax.Pivot.Selection;
    CubeExSet := Sels As ICubeExecuteSetup;
    DimSetup := CubeExSet.FindById("UNITS");
    If DimSetup <> Null Then
        PredefinedSetup := DimSetup.Predefined;
        For i := 0 To PredefinedSetup.Count - 1 Do
            Opt := PredefinedSetup.Item(j);
            If Opt.Id = "NATURAL" Then
                Opt.Selected := True;
            End If;
        End For;
    End If;
End Sub Button1OnClick;

After executing the example data of working area series are displayed in the units that are set for time series, which are data sources.

See also:

ICubeExecutePredefinedOption