
Hi. I need to run only-processing report in loop. During this loop run - I need collectible errors if specific operation failed. How to do this for reports? I found only Collectible errors for Codeunits run, what about reports?
Example:
repeat
SomeReport.SetTableView(SalesHeader);
Run of SomeReport;
until SalesHeader.Next() = 0;
If Report run correctly for 8 Sales Header, and incorrectly for 3 Sales Header - I need to perform operations for this 8 Headers (without stop after error in first incorrect Sales Header) and collect errors from 3 reports (with error). After loop I need to display info about error to user.
Hi, I'm not sure if the Try function will work for you, but I think it's worth giving it a try.
How to use Try methods/functions (TryFunction Attribute)
Hope this helps.
Thanks.
ZHU