Skip to main content
Community site session details

Community site session details

Session Id :
Small and medium business | Business Central, N...
Answered

Change of custom Layout for same report through EVENT

(0) ShareShare
ReportReport
Posted on by 134

Hi experts,

My question is if I want to run two different layouts for same report on the basis of some checkmark (boolean) on invoice ... how can i do that ??? I can't find an event that is used to switch layout..

Layout should automaticaly get attached on the base of that checkmark user should not manually change the layout .....

Thanks for your consideration

  • Verified answer
    YUN ZHU Profile Picture
    86,253 Super User 2025 Season 1 on at
    RE: Change of custom Layout for same report through EVENT

    Hi, my example is to let the user choose, but you can add some conditions, such as A condition use A Layout, B condition use B Layout, and then run the report.

    If you're looking for certain events, hopefully other experts can give you better advice.

    Thanks.

    ZHU

  • Abdullah Khalid Profile Picture
    134 on at
    RE: Change of custom Layout for same report through EVENT

    Hi Yzhums,

    Your mentioned blog is helpful but what i want is to automatically attach layout on base of some check from invoice.... I don't want to get user input... I'm looking for an Event that has parameter of record and custom report layout which i can use to change layout....

    Thanks

  • Verified answer
    YUN ZHU Profile Picture
    86,253 Super User 2025 Season 1 on at
    RE: Change of custom Layout for same report through EVENT

    Hi, You can specify the layout that needs to be run with code before the report is run.

    I hope the following information can give you some hints.

    Select a report layout before printing

    https://yzhums.com/25943/

    Thanks.

    ZHU

  • Abdullah Khalid Profile Picture
    134 on at
    RE: Change of custom Layout for same report through EVENT

    And how can we switch to other layout automatically.... like on basis of come check

  • Suggested answer
    Amit_Sharma Profile Picture
    2,547 on at

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

News and Announcements

Now Available: 2025 Release Wave 2

Quick Links

Ramesh Kumar – Community Spotlight

We are honored to recognize Ramesh Kumar as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > Small and medium business | Business Central, NAV, RMS

#1
Sohail Ahmed Profile Picture

Sohail Ahmed 2,655

#2
Mansi Soni Profile Picture

Mansi Soni 1,574

#3
YUN ZHU Profile Picture

YUN ZHU 1,453 Super User 2025 Season 1

Featured topics

Product updates

Dynamics 365 release plans