IReportBox.ShowBasicDataDialog

Syntax

ShowBasicDataDialog(Chart: IPrxChart; Parent: IWin32Window);

Parameters

Chart - the parameter that determines a report chart, for which a source data dialog box opens.

Parent - the parameter that determines a parent form for the dialog box that opens.

Description

The ShowBasicDataDialog method opens the Source Data dialog box for the selected regular report chart.

Example

Executing the example requires a form, a button named Button1 on this form, the ReportBox component and the UiReport component named UiReport1 used as a data source for ReportBox.

    Sub OBJ30408FormOnCreate(Sender: Object; Args: IEventArgs);
    Var
        mb: IMetabase;
    Begin
        mb := MetabaseClass.Active;
        report := mb.ItemById("OBJ30409").Edit As IPrxReport;
        UiReport1.Instance := report;
    End Sub OBJ30408FormOnCreate;
    Sub Button1OnClick(Sender: Object; Args: IMouseEventArgs);
    Var
        chart: IPrxChart;
    Begin
        chart := (report.ActiveSheet As IPrxTable).TabSheet.Objects.Item(0).Extension As IPrxChart;
        ReportBox1.ShowBasicDataDialog(chart, Self As IWin32Window);
    End Sub Button1OnClick;

After executing the example and clicking the button, the Source Data dialog box opens for the selected chart.

See also:

IReportBox