Sub EventOnAfterAddEaxGrid(Args: IUiPrxEaxGridEventArgs);
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.
See also: