SetScriptReportResult(Success: Boolean, Filename: String, ResultFileOrError: String)
Set Script Report Result function notifies an Accredo App that a report has run.
For successful reports, Success is set to True, the report Filename is sent, and the name of the pdf file to create is sent as ResultFileOrError. The result file pdf file is shown on the app.
For unsuccessful reports, Success is set to False, the report filename is sent, and the error message to display is sent as ResultFileOrError. The error message is displayed on the app.
See the App Sample Report Script for an example of this function.
SetScriptReportResult function syntax has these named arguments:
Parameter |
Description |
|---|---|
Success |
Required. True if the report ran successfully, or False if not. |
Filename |
Required. The filename of the report that was run. |
ResultFileOrError |
Required. If the report ran successfully, the pdf file name of the report result. If the report did not run successfully, the error message to display. |
For example:
SetScriptReportResult(True, "c:\MyReport.pdf", "ARAgedTrialBalance.pdf")
displays the report as ARAgedTrialBalance.pdf on the app.
SetScriptReportResult(False, "c:\MyReport.pdf", "Report did not run")
displays the error message on the app.