Skip to main content
Answer

Open report screen to parameters

  • January 23, 2023
  • 2 replies
  • 176 views

Forum|alt.badge.img+7

I’m using PXReportRequiredException  to open up a report from a button on a screen. I would like to open the report to the where the user can enter the parameters instead of the preview. I don’t want to pass the parameters to the report because it doesn’t make sense in this context.

Is there a way to do that?

Best answer by Yuriy Zaletskyy

I’d consider these excetions instead:

PXRedirectToUrlException or PXRedirectRequiredException. 

if (string.IsNullOrEmpty(e.NavigateUrl) is false)
throw new PXRedirectToUrlException(e.NavigateUrl, newWindowMode, "");

 

2 replies

Yuriy Zaletskyy
Jr Varsity I
Forum|alt.badge.img+3

I’d consider these excetions instead:

PXRedirectToUrlException or PXRedirectRequiredException. 

if (string.IsNullOrEmpty(e.NavigateUrl) is false)
throw new PXRedirectToUrlException(e.NavigateUrl, newWindowMode, "");

 


Yuriy Zaletskyy
Jr Varsity I
Forum|alt.badge.img+3

@Django did my suggestion helped?