web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

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

How to use Report.Run in an action, where a page is already called with Page.RunModal

(0) ShareShare
ReportReport
Posted on by

Hey guys,

I have created an action, in that action I am calling a page like that: Page.RunModal = Action::LookupOK

In the nex line I am doing a Findset ans some assignments.

Now I  would like to call a report after the assignments like this: Report.Run(Report::"Test",True,True,TestRecord)

Unfortunately I get an error message, when I run my code...

If I call the report like this: Report.Run(Report::"Test",False, False,TestRecord), but I need to call the report in this way: Report.Run(Report::"Test",True,True,TestRecord), because I need to give in some values, that is why I have to use "True".

Do you kow how to solve this issue? The error message says, that I have to use a commit...but where?

Thank you ;)

I have the same question (0)
  • Suggested answer
    THE Italian Profile Picture
    Microsoft Employee on at

    I would avoid this programming as munch as possible. This is what is reported for PAGE.RUMODAL

    https://docs.microsoft.com/en-us/dynamics-nav/page-runmodal-function

    When a page is run modally, no input, such as a keyboard or mouse click, can occur except for objects on the modal page.

    If your code is specifying another input or modal form (page) then you will receive an error. In this case, you are trying to run another modal form (reqwindow). 

    I would definitively change the design and avoid using page.runmodal.

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the March Top 10 Community Leaders

These are the community rock stars!

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

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 1,993 Super User 2026 Season 1

#2
YUN ZHU Profile Picture

YUN ZHU 1,116 Super User 2026 Season 1

#3
Khushbu Rajvi. Profile Picture

Khushbu Rajvi. 557 Super User 2026 Season 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans