Sub EventOnAfterAddEaxGrid(Args: IUiPrxEaxGridEventArgs);
Begin
//set of operators;
End Sub EventOnAfterAddEaxGrid;
Sub EventOnAfterAddEaxGrid(Args: Prognoz.Platform.Interop.Report.UiPrxEaxGridEventArgs);
Begin
//set of operators;
End Sub EventOnAfterAddEaxGrid;
Args. The parameter that enables the user to work with event parameters.
The EventOnAfterAddEaxGrid method implements the event that occurs after adding an analytical data area.
To implement an event that occurs after deleting analytical data area, use the IPrxReportUserEvents.EventOnAfterDeleteEaxGrid method.
Executing the example requires the regular report, which contains an analytical data area. Connect a unit to the regular report, select the connected unit an the EventsClass class as an event handler. Add links to the Metabase, Report, Ui system assemblies in the unit.
Class EventsClass: ReportEvents
Public Sub OnAfterAddEaxGrid(EaxGrid : IEaxGrid);
Begin
WinApplication.InformationBox("Analytical data area is added " + EaxGrid.Id);
End Sub OnAfterAddEaxGrid;
Public Sub OnAfterDeleteEaxGrid(EaxGrid : IEaxGrid);
Begin
WinApplication.InformationBox("Analytical data area is deleted " + EaxGrid.Id);
End Sub OnAfterDeleteEaxGrid;
End Class EventsClass;
An information message is displayed when the event occurs.
The requirements and result of the Fore.NET example execution match with those in the Fore example.
Imports Prognoz.Platform.Interop.Metabase;
Imports Prognoz.Platform.Interop.Report;
Imports Prognoz.Platform.Interop.Ui;
Public Class EventsClass: PrxForeNetReportUserEventsClass
Public Override Sub OnAfterAddEaxGrid(EaxGrid : EaxGrid);
Var
WinAppCls: WinApplicationClass = New WinApplicationClassClass();
Begin
WinAppCls.InformationBox("Analytical data area is added " + EaxGrid.Id, Null);
End Sub OnAfterAddEaxGrid;
Public Override Sub OnAfterDeleteEaxGrid(EaxGrid : EaxGrid);
Var
WinAppCls: WinApplicationClass = New WinApplicationClassClass();
Begin
WinAppCls.InformationBox("Analytical data area is deleted " + EaxGrid.Id, Null);
End Sub OnAfterDeleteEaxGrid;
End Class EventsClass;
See also:
Related work items
Requirement