Skip to main content

Notifications

Announcements

No record found.

Business Central forum
Unanswered

How to select the layout of the report on the request page of report in business central

Posted on by 18
Hi Team,

I have one option field on the request page of the report, and I want to preview the report based on the layout option selected on the request page in the business central.
let me know, Please let me know if there is any way to do this.

Thanks.
Categories:
  • Suggested answer
    Hein Kruger Profile Picture
    Hein Kruger 462 on at
    How to select the layout of the report on the request page of report in business central
    Hi, 
    Its a bit tricky but do able. 
    You have to save your requestpage option in a Single Instance Code unit or use Isolated Storage to store the option value. Use one of the Report Triggers to save the option value. 

    In the Code unit ReportManagement (ID: 44) there is a procedure- OnFetchReportLayoutByCode(). 
    You can retrieve your option from the Single instance codeunit in this procedure and modify the layout code to the layout you need to use



    Alternatively, 
    Make two reports in one RDLC inside two tables and only show the table that the Report Option Selected. 

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

Anton Venter – Community Spotlight

Kudos to our October Community Star of the month!

Announcing Our 2024 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Dynamics 365 Community Newsletter - September 2024

Check out the latest community news

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 290,532 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 228,501 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,148

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans