web
You’re offline. This is a read only version of the page.
close
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

I have the same question (0)
  • Suggested answer
    Amit Profile Picture
    2,557 on at
  • 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

  • Verified answer
    YUN ZHU Profile Picture
    92,564 Super User 2025 Season 2 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

    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
    92,564 Super User 2025 Season 2 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

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Abhilash Warrier – Community Spotlight

We are honored to recognize Abhilash Warrier as our Community Spotlight honoree for…

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

#1
Rishabh Kanaskar Profile Picture

Rishabh Kanaskar 4,160

#2
Nimsara Jayathilaka. Profile Picture

Nimsara Jayathilaka. 2,943

#3
Sumit Singh Profile Picture

Sumit Singh 2,823

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans