Hello,
is not possible to have a return value from a report in a manner similar to a standard codeunit call:
[Ok] := Codeunit.RUN(Number [, Record])
If Ok is...
It means that...
TRUE
No errors occurred
FALSE
An error occurred during the execution of the codeunit
To evitate runtime error and manage them?
Thank you
0
Comments
REPORT.RUNMODAL(123);
REPORT.RUNMODAL(234);
REPORT.RUNMODAL(345);
REPORT.RUNMODAL(543);
....
REPORT.RUNMODAL(8978);
I want that, if a report, fails the following ones are run otherwise all processing of the codeunit is skipped for error.
Thank you
in your codeunit define variables for your reports
Rep123, Rep234 ...
and run reports as follows:
here ExecutedOk is your defined function in each report something like this:
and bExecutedOk is boolean global variable defined in each report and set to true in its OnPostReport trigger. Here i assume that everything went ok if your code reached the end of OnPostReport trigger