EventOnCellChange(Args: IUiPrxCellChangeEventArgs);
EventOnCellChange(Args: Prognoz.Platform.Interop.Report.UiPrxCellChangeEventArgs);
Args. The parameter, which enables the user to work with event parameters.
The EventOnCellChange method implements the event that occurs after changing a cell value.
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 Report, Ui system assemblies in the unit.
Class EventsClass: ReportEvents
Sub EventOnCellChange(Args: IUiPrxCellChangeEventArgs);
Begin
WinApplication.InformationBox("Cell value is changed in column " + Args.Column.ToString + " in row " + Args.Row.ToString + " on sheet " + Args.Sheet.Name + ". New value " + Args.Value);
End Sub EventOnCellChange;
End Class EventsClass;
Imports Prognoz.Platform.Interop.Report;
Imports Prognoz.Platform.Interop.Ui;
Public Class EventsClass: PrxForeNetReportUserEventsClass
Public Override Sub EventOnCellChange(Args: Prognoz.Platform.Interop.Report.UiPrxCellChangeEventArgs);
Var
WinAppCls: WinApplicationClass = New WinApplicationClassClass();
Begin
WinAppCls.InformationBox("Cell value is changed in column " + Args.Column.ToString() + " in row " + Args.Row.ToString() + " on sheet " + Args.Sheet.Name + ". New value " + Args.Value, Null);
End Sub EventOnCellChange;
End Class EventsClass;
After changing the cell value in the regular report an information message is displayed.
See also:
Related work items
Requirement