Skip to main content
Answer

How to Open a Report Parameter Screen Before Running the Report

  • April 17, 2025
  • 1 reply
  • 62 views

Hi Community,

I am working on a customization in Acumatica, where I need to open the parameter screen for a report before the report is executed. I am using the report ID AM660000 for the "Move Report," and I want to pre-fill some parameters (like BatchNbr) from the current screen, but I want to ensure that the user can select additional parameters (like AcctCD) before the report is actually run.

I have tried using the following code:

throw new PXReportRequiredException(parameters, "AM660000", "Move Report");

However, this approach immediately runs the report instead of just opening the parameter screen. I would like to know if there's a way to only show the parameter screen and allow the user to modify or select their parameters (e.g., AcctCD) before proceeding with the report.

Any insights or examples would be greatly appreciated!

Best answer by Josiah Lisle

You would likely need to create a custom button in code which opens a dialog box (which you would also need to create), and based on the parameters that the user specifies in the dialog box, once they click “ok”, it passes those other parameters into the report.

1 reply

Forum|alt.badge.img+1
  • Jr Varsity I
  • Answer
  • April 24, 2025

You would likely need to create a custom button in code which opens a dialog box (which you would also need to create), and based on the parameters that the user specifies in the dialog box, once they click “ok”, it passes those other parameters into the report.