Announcements
Hi All,
I just want to clarify the usage of Substitude method in SaaS BC. If you want to add a new field a data set - say purchase order report 1322 and create RDLC version, then you have to create your own report - say 50322, and then also you need to use the substitute method with something like:
codeunit 50100 "Substitute Report" { [EventSubscriber(ObjectType::Codeunit, Codeunit::ReportManagement, 'OnAfterSubstituteReport', '', false, false)] local procedure OnSubstituteReport(ReportId: Integer; var NewReportId: Integer) begin if ReportId = Report::"1322" then NewReportId := Report::"50322"; end; }
This seems to look like a lot of work to add a new field unless there is an easier way?
Thanks
Hi all,
For one of our requirements to insert the custom field in the business central. We tried following the below mentioned steps:
>> created a new custom field on the sales order page.
>> inserted the field in the page extension
>> created a new report with the help of the given link (navinsights.net/.../adding-a-field-to-a-standard-word-
report-in-business-central/) As thing blog suggests we have created a new report with the new object number.
>> build a RDL file
>> placed that field in the RDL file under a new dataset.
When we tried to design the report we were only able to see the dataset created by us with one field only.
How can we use the existing fields in the custom report?
OR
Is there any way we can use the existing report to insert the custom field?
We are following the solution mentioned below:
community.dynamics.com/.../custom-reports-and-usage-of-substitute-method
But did not find the relevant result. Can anyone help us with this?
Unfortunately there is no easier way at the moment.
It does not exists a report extension object like e.g. table or page extension object.
This is the way to go for.
André Arnaud de Cal...
294,081
Super User 2025 Season 1
Martin Dráb
232,860
Most Valuable Professional
nmaenpaa
101,158
Moderator