Sub EventOnBeforeOpenReport(Args: IUiPrxReportCancelEventArgs)
Begin
// set of operators
End Sub EventOnBeforeOpenReport;
Args - the parameter, which enables the user to work with event parameters.
The EventOnBeforeOpenReport method implements the event that occurs before opening the regular report.
Sub EventOnBeforeOpenReport(Args: IUiPrxReportCancelEventArgs);
Begin
Args.Cancel := Not WinApplication.ConfirmationBox("Open report " + Args.Report.MetabaseObject.Id + "?");
End Sub EventOnBeforeOpenReport;
When the event occurs, a dialog box to confirm opening the report with the specified identifier opens. Answer Yes to open the report, otherwise it is not opened.
See also: