IPrxReportUserEvents.EventOnAfterAddFormulaIsland

Syntax

Sub EventOnAfterAddFormulaIsland(Args: IUiPrxFormulaIslandEventArgs);
Begin
   
//set of operators;
End Sub EventOnAfterAddFormulaIsland;

Parameters

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

Description

The EventOnAfterAddFormulaIsland method implements the event that occurs after adding a formula area.

Comments

To implement the event that occurs after deleting formula area, use the IPrxReportUserEvents.EventOnAfterDeleteFormulaIsland method.

Example

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.

See also:

IPrxReportUserEvents