我需要在同一个浏览器选项卡中重定向到Acumatica中的url。我不想在重定向之后有两个浏览器选项卡。我不希望它出现在页面IFrame中,整个页面应该被替换。
我一直在使用:
PXRedirectToUrlException(url, PXBaseRedirectException.WindowMode.Base/Same/New, "");
PXException($"Redirect#:{url}"); // Replace # with 1,2,3,4,5,6,7,8 etc
没有效果。
谢谢-Kyle
发布于 2022-01-12 19:59:15
将HTML目标框架设置为_top
值。
示例:
string url = "https://www.acumatica.com";
throw new PXException($"Redirect0:{url}$target=_top");
https://stackoverflow.com/questions/70687614
复制相似问题