Skip to main content
Question

How we can access the arguments passed as parameter when a

  • November 3, 2023
  • 2 replies
  • 89 views

aaghaei
Captain II
Forum|alt.badge.img+11

Hello all,

 

We can open a new screen using PXRedirectRequireExcption. We also can include parameters as argument when we throw the exception. My question is how in the “target” screen we can access the parameters provided as argument when we threw the exception in the “source” screen. for example I throw the below exception from screen A that will open screen B. So when screen B page is loading how I can access the P1 and P2? to be more specific I need to access them in the Page_Load.

throw new PXRedirectRequiredException(myGraph, true, string.Empty, P1, P2) { Mode = PXBaseRedirectException.WindowMode.NewWindow };

Any help is appreciated.

2 replies

  • Freshman I
  • January 16, 2026

I know this is very old, but thought I would chime in.  I believe this can be accomplished through the use of the standard - 

Request.QueryString["myParam"];

I think if you have named parameters in your URL, you should be able to access it!  Please give it a try, and this old ticket might get closed with resolution!  :)  Happy Friday!


aaghaei
Captain II
Forum|alt.badge.img+11
  • Author
  • Captain II
  • January 16, 2026

@kwillman15  Thank you very much for the reply. I will check to see Acumatica passes as naed parameters or passes as array. Cheers