Skip to main content
Answer

How to close any screen programmatically?

  • July 17, 2025
  • 2 replies
  • 56 views

Forum|alt.badge.img

I have open screen using 

PXRedirectHelper.TryRedirect(graph, PXRedirectHelper.WindowMode.Popup); 

Now i will need to close this screen.

Best answer by hyadav08

I have found the solution


throw new PXRedirectToUrlException(PXSiteMap.Provider.FindSiteMapNodeByScreenID("EWQC9010").Url, PXBaseRedirectException.WindowMode.Same, "Redirect");

2 replies

Forum|alt.badge.img
  • Author
  • Jr Varsity III
  • Answer
  • July 21, 2025

I have found the solution


throw new PXRedirectToUrlException(PXSiteMap.Provider.FindSiteMapNodeByScreenID("EWQC9010").Url, PXBaseRedirectException.WindowMode.Same, "Redirect");


Chris Hackett
Community Manager
Forum|alt.badge.img
  • Acumatica Community Manager
  • July 21, 2025

Thank you for sharing your solution with the community ​@hyadav08!