Skip to main content

Notifications

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

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

Posted on by 20
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.
  • Suggested answer
    YUN ZHU Profile Picture
    YUN ZHU 71,656 Super User 2024 Season 2 on at
    How to select the layout of the report on the request page of report in business central
    Hi, sorry, I may not have fully understood your question, this should be standard functionality.
    More details: Business Central 2022 wave 2 (BC21): Choose the report layout on request page (Select a report layout before printing)
    PS:
    Dynamics 365 Business Central: How to set the default report layout via AL (“Report Layout List 2000000234”)
    Dynamics 365 Business Central: Can we change default options/filters on the request page of Report???
     
    Hope this helps.
    Thanks.
    ZHU
  • Suggested answer
    Hein Kruger Profile Picture
    Hein Kruger 499 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

November Spotlight Star - Khushbu Rajvi

Congratulations to a top community star!

Forum Structure Changes Complete!

🔔 Be sure to subscribe to the new forums you are interested in to stay up to date! 🔔

Dynamics 365 Community Platform update – Oct 28

Welcome to the next edition of the Community Platform Update. This is a status …

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 229,297 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans