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

Problem writing a handler for a report with a request-page

(1) ShareShare
ReportReport
Posted on by 2
Hi!

I'm testing MS Dynamics Nav (https://learn.microsoft.com/en-us/dynamics365/business-central/dev-itpro/developer/devenv-testing-application). I have a problem writing a handler for a report with a request-page that is run before the report starts to execute. On the request page need to specify a parameter for the report, after which the report is printed.  A request page has a predefined set of buttons: OK and Cancel, there are no others.

I would like to save the report to a file.

1. If I use the request page handler, I cannot use the method Report.SaveAsPdf, an error occurs: The TestPage is not open (it makes sense, because after selecting the settings on the request page, it was closed).

2. If you use the method Report.Save As in the request page handler (having previously intercepted the generated xml), an error occurs indicating that the parameters selected on the request page were not applied or most likely reset.

3. If the request page handler does not attempt to save the report in any way, an error occurs: User interface without processing: ReportData

The documentation (https://learn.microsoft.com/en-us/dynamics365/business-central/dev-itpro/developer/attributes/devenv-requestpagehandler-attribute) states: If you create a ReportHandler method, then that method replaces all code for running the report, including the request page, and a RequestPageHandler is not called. Only create a RequestPageHandler method if you are not using a ReportHandler one.

Can you tell me how to work with the request pages in the report handler to select the necessary parameters?
I have the same question (0)
  • Suggested answer
    YUN ZHU Profile Picture
    99,055 Super User 2026 Season 1 on at
    Hi, there is a way to add a button on the Request Page, hope that gives you some hints.
    Dynamics 365 Business Central: How to add “actions (buttons)” on Request Page of Report/XMLport
     
     
    Thanks.
    ZHU
  • Suggested answer
    Gerardo Rentería García Profile Picture
    25,555 Most Valuable Professional 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

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Congratulations to our 2025 Community Spotlights

Thanks to all of our 2025 Community Spotlight stars!

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

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 1,926 Super User 2026 Season 1

#2
YUN ZHU Profile Picture

YUN ZHU 1,158 Super User 2026 Season 1

#3
Khushbu Rajvi. Profile Picture

Khushbu Rajvi. 533 Super User 2026 Season 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans