Skip to main content

Notifications

Announcements

No record found.

Business Central forum
Unanswered

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

Posted on by 204
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
 
Categories:
  • YUN ZHU Profile Picture
    YUN ZHU 63,522 Super User 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 204 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 63,522 Super User 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 4,646 Super User 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

Helpful resources

Quick Links

First Dynamics 365 Community Call (CRM Edition)

Don't miss the first D365 Community Call on 7/10!

Community Spotlight of the Month

Kudos to Saurav Dhyani!

Congratulations to the June Top 10 community leaders!

These stars go above and beyond . . .

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 285,642 Super User

#2
Martin Dráb Profile Picture

Martin Dráb 225,485 Super User

#3
nmaenpaa Profile Picture

nmaenpaa 101,148

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans