Skip to main content

Notifications

Announcements

No record found.

Small and medium business | Business Central, N...
Suggested answer

Report Extension to change defaults on request page

(0) ShareShare
ReportReport
Posted on by 2,469

Hi All

Is there a way to sue report extensions to change the defaults on a standard report - set boolean to true on request page? Looking at the code for report extensions below trigger is not available for extensions:

https://learn.microsoft.com/en-us/dynamics365/business-central/dev-itpro/developer/triggers-auto/report/devenv-oninitreport-report-trigger

Thanks

  • Suggested answer
    YUN ZHU Profile Picture
    YUN ZHU 74,115 Super User 2024 Season 2 on at
    RE: Report Extension to change defaults on request page

    Hi, Sorry I didn't test it in detail, if the global variable in the standard report is a protected variable, you might be able to access it in the report extension.

    More details: https://yzhums.com/21738/

    pastedimage1675045345176v1.png

    Or you can change your mind. Hide this value on the Request Page and assign this value to True in the Report's Trigger.

    Hope this can give you some hints 

    Thanks.

    ZHU

  • Suggested answer
    Inge M. Bruvik Profile Picture
    Inge M. Bruvik 32,748 Super User 2024 Season 1 on at
    RE: Report Extension to change defaults on request page

    I don't think you can change the request page in a report extention.

    The best approach will be to create a copy of the report and modify that.

    Then you can use the event substituting report to have your custom report printed instead of the standard report.

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 Verified Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,445 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans