Can I modify the Standard report in BC 16?

xavierho970304
Member Posts: 12
Hi guys,
May I ask how I can modify or add a new field in the BC 16's standard report?
Thank you.
May I ask how I can modify or add a new field in the BC 16's standard report?
Thank you.
0
Answers
-
You can't.....
You need to create a new one.
You can copy it from the original, and modify yours.0 -
We all miss this in BC, in previous version we were having this flexibility but unfortunately not nowThanks
Blog - rockwithnav.wordpress.com/
Twitter - https://twitter.com/RockwithNav
Facebook - https://facebook.com/rockwithnav/0 -
As the others mention, you cannot do this as there isn't an easy way to modify a report. In theory, if you were creating a new report, you could add integration events that you could override to substitute data or you could provide alternate layouts in your report configuration. For base reports, however, I do not know of any that do either of these things.
Go into the "Microsoft_Base Application_<version>.app" file in your .alpackages folder of your project, find the report object that you wish to change, and copy that to a new file with a new object number and name (I usually just append "Custom" to the name).
If this is a report that has a report selections entry, you can simply change that selection to run the new report number. Otherwise you will need to have a codeunit that overrides ReportManagement OnAfterSubstituteReport or find all the page references to that report and modify the page actions:
[EventSubscriber(ObjectType::Codeunit, Codeunit::ReportManagement, 'OnAfterSubstituteReport', '', false, false)]
local procedure OnAfterSubstituteReport(ReportId: Integer; var NewReportID: Integer)
begin
if ReportId = Report::"Detail Trial Balance" then
NewReportID := REPORT::"Custom Detail Trial Balance";
end;
0
Categories
- All Categories
- 73 General
- 73 Announcements
- 66.6K Microsoft Dynamics NAV
- 18.7K NAV Three Tier
- 38.4K NAV/Navision Classic Client
- 3.6K Navision Attain
- 2.4K Navision Financials
- 116 Navision DOS
- 851 Navision e-Commerce
- 1K NAV Tips & Tricks
- 772 NAV Dutch speaking only
- 617 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 320 Dynamics CRM
- 111 Dynamics GP
- 10 Dynamics SL
- 1.5K Other
- 990 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 35 Design Patterns (General & Best Practices)
- 1 Architectural Patterns
- 10 Design Patterns
- 5 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1.1K General Chat
- 1.6K Website
- 83 Testing
- 1.2K Download section
- 23 How Tos section
- 252 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions