IPrxReportUserEvents.EventOnAfterAddEaxGrid

Fore Syntax

Sub EventOnAfterAddEaxGrid(Args: IUiPrxEaxGridEventArgs);
Begin
   
//set of operators;
End Sub EventOnAfterAddEaxGrid;

Fore.NET Syntax

Sub EventOnAfterAddEaxGrid(Args: Prognoz.Platform.Interop.Report.UiPrxEaxGridEventArgs);
Begin
   
//set of operators;
End Sub EventOnAfterAddEaxGrid;

Parameters

Args. The parameter that enables the user to work with event parameters.

Description

The EventOnAfterAddEaxGrid method implements the event that occurs after adding an analytical data area.

Comments

To implement an event that occurs after deleting analytical data area, use the IPrxReportUserEvents.EventOnAfterDeleteEaxGrid method.

Fore Example

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.

Fore.NET Example

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:

IPrxReportUserEvents

Related work items

Requirement