Currently the path to extend a standard report is to 1. Convert the report to AL 2. Add additional fields to the dataset plus code to populate the fields (if not just adding missing information from the existing source table) 3. Change application to call new report (depending on which report is modified) Although this works it has many downsides. For one the process is very cumbersome and the customer does not understand why we have to go through all this work, just to add a missing field to a report. Second, as the report is a copy of the original we must continuously track changes of the original report and merge them into the copy. When you have 10, 20 or 40 reports to maintain this becomes very time consuming (although some can be automated with PowerShell) and no no value to the customer. From AL it should be possible to extend the datasets of an existing report, just as adding fields to an existing page. From the extension is should further be possible to have access to a before/after trigger on each of the existing report (Init, Pre/Post on Report and Dataset).
Comments
XXXXXXXXXXXX in reply to Morten Seifert
This would be very usefull, but i think this is not realy possible with extensions.
How would you handle two extensions extending the same report?
LIKE like this message REPLY reply to this message SHARE share this message More message options
Morten Seifert in reply to Miljan Milosavljevic - I imagine that it only will be the dataset that is extended...
Morten Seifert – 12 hours ago
I imagine that it only will be the dataset that is extended and thus available for the Document Layout. Possible the extension should allow additional layouts to be included in the extension. If you have multiple extensions extending the report the partner (or customer) would need to create a new layout combining the two. But the dataset available the report would contain fields from both extensions.
Category: Development
Business Central Team (administrator) on 10/31/2024 7:19:37 AM