Question 590
A Business Central developer must validate a correction for this condition: A developer needs to trigger special calculations before report output is formatted. Which acceptance result best demonstrates that the issue was resolved?
Explanation
Correct Answer
The acceptance result follows from the chosen remedy. Place the calculation in an appropriate report trigger or function according to its data-item scope. is justified because report triggers execute at defined lifecycle points and their scope determines which values are available. Therefore verify: The generated report includes the expected calculated field for each relevant record.
Incorrect Answers
This alternative addresses the separate case “A customer wants to change a printed sales invoice's appearance without rebuilding the posting process”. This result checks the customer-visible or technical outcome, rather than just compilation: The generated document uses the intended layout with unchanged posted ledger entries. The deciding requirement here is “The generated report includes the expected calculated field for each relevant record”.
That result would validate work on a report takes many minutes because it recalculates each customer balance through repeated database calls per line. It does not confirm this case's intended outcome: The generated report includes the expected calculated field for each relevant record.
The related but distinct situation is “A localization partner must translate report captions but finds the wording hard-coded into a layout file”. This result checks the customer-visible or technical outcome, rather than just compilation: The same report renders translated headings without altering calculated figures. For the stated problem, “The generated report includes the expected calculated field for each relevant record” addresses the central condition.