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

Notifications

Announcements

No record found.

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
    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

Responsible AI policies

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

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

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

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 2,066

#2
YUN ZHU Profile Picture

YUN ZHU 658 Super User 2025 Season 2

#3
Sumit Singh Profile Picture

Sumit Singh 595

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans