Home > Foresight Analytics Platform > Web Application and Desktop Application > Application Development and Functionality Enhancement > Developing in Development Environment > Description of System Assemblies > Report > Report Assembly Classes > UiReport > UiReport.OnBeforeRecalcSheet
OnBeforeRecalcSheet(Sender: Object; Args: IUiPrxSheetCancelEventArgs);
Sender. Parameter that returns the component that has generated the event.
Args. The parameter that enables the user to determine event parameters.
The OnBeforeRecalcSheet event occurs before calculating the regular report sheet.
Executing the example requires that unit is connected as event handler.
Public Sub OnBeforeRecalcSheet(Sheet: IPrxSheet; Var Cancel: Boolean);
Var
Sheets : IPrxSheets;
Begin
If Sheet.Name = "Sheet2" Then
Sheets := Sheet.Sheets;
Sheets.FindByName("Sheet3").Recalc;
End If;
End Sub OnBeforeRecalcSheet;
After executing the example on updating the sheet named Sheet2, the sheet named Sheet3 will be updated.
See also: