Sub EventOnBeforeExecuteReport(Args: IUiPrxReportCancelEventArgs);
Begin
// set of operators
End Sub EventOnBeforeExecuteReport;
Args - the parameter, which enables the user to work with event parameters.
The EventOnBeforeExecuteReport method implements the event that occurs before calculating the regular report.
Sub EventOnBeforeExecuteReport(Args: IUiPrxReportCancelEventArgs);
Begin
Args.Cancel := Not WinApplication.ConfirmationBox("Calculate report " + Args.Report.MetabaseObject.Id + "?");
End Sub EventOnBeforeExecuteReport;
When the event occurs, a dialog box to confirm report calculation opens. Select Yes to calculate the report or No to cancel calculation.
See also: