Skip to main content

Notifications

Announcements

No record found.

Small and medium business | Business Central, N...
Unanswered

Looking for an event to merge code done in OnPreReport from Nav

Posted on by 231
Hi,
 
We are currently working on upgrading one of our customers from Nav2018 to BC SaaS.
They have a few modifications in the OnPreReport section of multiple reports.
We are trying to find the proper event subscriber to use to bring in those modifications.
 
1 example is for the Suggest Vendor Payment.
We need to validate that the Bal. account type/no. entered by the user matches the ones specified in the journal batch.
We tried creating a report extension with the trigger OnPreReport, however, we do not have access to the values filled in by the user in the request page, which are needed
Event recorder didn't call anything that I think we can use.
 
We would like to avoid creating a copy of the reports if possible to make sure they get the new features/changes with the updates.
 
Any ideas/suggestions?
 
-Julie
 
  • YUN ZHU Profile Picture
    YUN ZHU 73,698 Super User 2024 Season 2 on at
    Looking for an event to merge code done in OnPreReport from Nav
    Hi, hope the following can give you some hints.
    Dynamics 365 Business Central: Can we change default options/filters on the request page of Report???
     
    Thanks.
    ZHU
  • Juliem Profile Picture
    Juliem 231 on at
    Looking for an event to merge code done in OnPreReport from Nav
    Hey Zhu, 
     
    the problem is that I do not have access to the variables from the the request page using the OnPreReport trigger in a report extension.
    I need to compare the bal. account type and no. the user entered with the values from the related batch. Unless I'm missing something.
     
    -Julie
  • YUN ZHU Profile Picture
    YUN ZHU 73,698 Super User 2024 Season 2 on at
    Looking for an event to merge code done in OnPreReport from Nav
    Hi, Is there any problem with using ReportExtension Object?
     
    Hope this helps.
    Thanks.
    ZHU
  • gdrenteria Profile Picture
    gdrenteria 12,183 Most Valuable Professional on at
    Looking for an event to merge code done in OnPreReport from Nav
    Hi
    As you indicate, you have to evaluate each report and see if it is feasible to extend it or not.
    There are also some other options like this tool.
    BR
    GR

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,280 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,235 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans