IEaxAnalyzerCore.DrillSerie

Fore Syntax

DrillSerie(Serie: IChartSerie): IEaxDrillSerieResult;

Fore.NET Syntax

DrillSerie(Serie: Prognoz.Platform.Interop.Chart.IChartSerie): Prognoz.Platform.Interop.Express.IEaxDrillSerieResult;

Parameters

Serie. Data series.

Description

The DrillSerie method returns information on binding of a data series to data.

Comments

To get parameters of the data series, for which the DrillSerie method was executed, use the IEaxDrillSerieResult.Serie property.

Fore Example

Executing the example requires a form containing the Button component named Button1, the ChartBox component named ChartBox1 and the UiErAnalyzer component named UiErAnalyzer1 which is a data source for the ChartBox1 component.
As data source for the UiErAnalyzer1 component, set express report with chart containing at least one series with data. Set the UiErAnalyzer1 component to the Active = True property.

Add links to the Chart, Dimensions system assemblies.

The procedure is a handler of the OnClick event for the Button1 component.

Sub Button1OnClick(Sender: Object; Args: IMouseEventArgs);
Var
    Expr: IEaxAnalyzer;
    Serie: IChartSerie;
    DrillSerie: IEaxDrillSerieResult;
    DimSelection: IDimSelectionSet;
    CountSel, i: Integer;
Begin
    Expr := UiErAnalyzer1.Instance As IEaxAnalyzer;
    Serie := Expr.Chart.Chart.Series.Item(0);
    DrillSerie := Expr.DrillSerie(Serie);
    If DrillSerie <> Null Then
        DimSelection := DrillSerie.Selection;
        Debug.WriteLine("Elements in selection:");
        CountSel := DimSelection.Count;
        For i := 0 To CountSel - 1 Do
            Debug.WriteLine("• " + DimSelection.Item(i).ToString("NAME"", "True));
        End For;
    End If;
End Sub Button1OnClick;

On clicking the button the console displays a list of elements contained in the selection by all dimension for the first series.

Fore.NET Example

The requirements and result of the Fore.NET example execution match with those in the Fore example. Use Fore.NET analogs instead of Fore components.

Imports Prognoz.Platform.Interop.Express;
Imports Prognoz.Platform.Interop.Chart;
Imports Prognoz.Platform.Interop.Dimensions;

Private Sub button1_Click(sender: System.Object; e: System.EventArgs);
Var
    Expr: IEaxAnalyzer;
    Serie: IChartSerie;
    DrillSerie: IEaxDrillSerieResult;
    DimSelection: IDimSelectionSet;
    DimSel: IDimSelection;
    CountSel, i: Integer;
Begin
    Expr := UiErAnalyzerNet1.ErAnalyzer.Instance As IEaxAnalyzer;
    Serie := Expr.Chart.Chart.Series.Item[0];
    DrillSerie := Expr.DrillSerie(Serie);
    If DrillSerie <> Null Then
        DimSelection := DrillSerie.Selection;
        System.Diagnostics.Debug.WriteLine("Elements in selection:");
        CountSel := DimSelection.Count;
        For i := 0 To CountSel - 1 Do
            DimSel := DimSelection.Item[i];
            System.Diagnostics.Debug.WriteLine("• " + DimSel.ToString("NAME"", "True));
        End For;
    End If;
End Sub;

See also:

IEaxAnalyzeCore