Sub EventOnAfterAddFormulaIsland(Args: IUiPrxFormulaIslandEventArgs);
Begin
//set of operators;
End Sub EventOnAfterAddFormulaIsland;
Sub EventOnAfterAddFormulaIsland(Args: Prognoz.Platform.Interop.Report.UiPrxFormulaIslandEventArgs);
Begin
//set of operators;
End Sub EventOnAfterAddFormulaIsland;
Args. The parameter that enables the user to work with event parameters.
The EventOnAfterAddFormulaIsland method implements the event that occurs after adding a formula area.
To implement the event that occurs after deleting formula area, use the IPrxReportUserEvents.EventOnAfterDeleteFormulaIsland method.
Executing the example requires a regular report. 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 OnAfterAddFormulaIsland(FormulaIsland : IPrxFormulaIsland);
Begin
WinApplication.InformationBox("Formula area is added " + FormulaIsland.Id);
End Sub OnAfterAddFormulaIsland;
Public Sub OnAfterDeleteFormulaIsland(FormulaIsland : IPrxFormulaIsland);
Begin
WinApplication.InformationBox("Formula area is deleted " + FormulaIsland.Id);
End Sub OnAfterDeleteFormulaIsland;
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 OnAfterAddFormulaIsland(FormulaIsland : IPrxFormulaIsland);
Var
WinAppCls: WinApplicationClass = New WinApplicationClassClass();
Begin
WinAppCls.InformationBox("Formula area is added " + FormulaIsland.Id, Null);
End Sub OnAfterAddFormulaIsland;
Public Override Sub OnAfterDeleteFormulaIsland(FormulaIsland : IPrxFormulaIsland);
Var
WinAppCls: WinApplicationClass = New WinApplicationClassClass();
Begin
WinAppCls.InformationBox("Formula area is deleted " + FormulaIsland.Id, Null);
End Sub OnAfterDeleteFormulaIsland;
End Class EventsClass;
See also:
Related work items
Requirement