Skip to main content

Notifications

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

Set Variable in PageExtension -> ReportExtension

Posted on by 30

Hello Guys.

I'm planning to make a "multi report" where i change some fields...

Short:

Default Report 1306, i wanna use it for two purposes - traditionally when i press "Print Sale Invoice" and another where i add a new button to do basically same report, but first set a Bool = True - and in the report if that value is true - i was thinking on using trigger "OnPostReport" to exchange the fields with the value i want to have.... 

So basically - how do i define a Temp variable in a page extension that will be transfered to the Report Extension - so i here can see it and create logic on it? 

I could create a field in a tableextension - but i think it's overkill - since i only use it for this.... 

Categories:
  • Suggested answer
    Inge M. Bruvik Profile Picture
    Inge M. Bruvik 32,748 Super User 2024 Season 1 on at
    RE: Set Variable in PageExtension -> ReportExtension

    Maybe you can find some help in this video:

    www.youtube.com/watch

  • RasmusAKEA Profile Picture
    RasmusAKEA 30 on at
    RE: Set Variable in PageExtension -> ReportExtension

    My Point is to create a temporary variable from the PageExtension i can set to "True" When Pressing the Generate Report button....

    Then inside the ReportExtension i should be able to check if the above value is set for "True" or "False" - then generate the report with different content - depending on this tag.... 

    So the value of the temp variable must be visible inside the report extension 

  • Suggested answer
    Nitin Verma Profile Picture
    Nitin Verma 21,091 Super User 2024 Season 1 on at
    RE: Set Variable in PageExtension -> ReportExtension

    Hi RasmusAKEA ,

    I am not getting your requirement, can you please say that?

    Thanks.

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!

Community AMA December 12th

Join us as we continue to demystify the Dynamics 365 Contact Center

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,149 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans