Sub OnBeforeRecalcSheet(Sender: Object; Args: IUiPrxSheetCancelEventArgs);
Begin
//set of operators;
End Sub OnBeforeRecalcSheet;
Sender - a parameter that returns the component that has generated the event.
Args - a parameter, which enables the user to determine event parameters.
The OnBeforeRecalcSheet event occurs before calculating the 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: