16

Currently the OnAfterGetRecord Trigger of the Report is executed even when you have a CurrReport.Skip in the OnBeforeOnAfterGetRecord in a ReportExtension.


This is outlined in details here: https://github.com/microsoft/AL/issues/7039#issuecomment-2270411453


Could you please provide a new way of skipping the trigger of the report too.


e.g. via an additional optional parameter CurrReport.Skip([SkipTrigger: Boolean]) with default value false.


Additional Information:


We have some copied reports where we don't want to print some lines in a report an therefore don't want to include those lines in the total amount.

If we were able to skip the On AfterGetRecord Code with this then we could easily move from copied reports to report extensions.

The workaround would be to substract the values from the line on the OnAfterOnAfterGetRecord.

Furthermore the value of the variable FirstValueHasBeenOutput would be wrong if the trigger is executed, but the line is ommitted in the output.

Category: Development
STATUS DETAILS
Needs Votes
Ideas Administrator

Thank you for this suggestion! Currently this is not on our roadmap. We are tracking this idea and if it gathers more votes and comments we will consider it in the future. Best regards, Business Central Team