[英]Xrm.Navigation.openUrl issue in Dynamics crm 365 v9.0
I have been working with Dynamics 365 v9.0 and I have been facing this issue when I am opening a URL on Dynamics crm 365 web using Xrm.Navigation.openUrl
, the URL gets opened in new window, But in "UI Interface", it is opening in new tab.我一直在使用 Dynamics 365 v9.0,当我使用
Xrm.Navigation.openUrl
在 Dynamics crm 365 web 上打开 URL 时,我一直面临这个问题,URL 在新窗口中打开,但在“UI 界面”中,它正在新标签页中打开。
Does anybody help me for this issue?有人帮我解决这个问题吗?
It is what it is.就是这样。 I would say, at least MS gave a supported way to open external url compared to
window.open()
.我会说,与
window.open()
相比,至少 MS 提供了一种支持的方式来打开外部 url。 It's in early stage, expecting more parameters in future for openUrlOptions .它处于早期阶段,期待未来为openUrlOptions 提供更多参数。
var url = "http://google.com";
var openUrlOptions = {
height: 400,
width: 800
};
Xrm.Navigation.openUrl(url, openUrlOptions);
For now, try some browser settings like below for workaround.现在,请尝试一些如下所示的浏览器设置以解决问题。
We are also facing behavioral discrepancy with Unified interface compared to classic.与经典界面相比,我们还面临着统一界面的行为差异。
If you are opening Entity Form or Web resource, try Xrm.Navigation.openForm
or Xrm.Navigation.openWebResource
which has boolean property openInNewWindow
under entityFormOptions
& windowOptions
parameter respectively.如果您正在打开实体表单或Web资源,尝试
Xrm.Navigation.openForm
或Xrm.Navigation.openWebResource
具有布尔属性openInNewWindow
下entityFormOptions
& windowOptions
参数分别。
在 2020 年对我有用的唯一方法是使用 window.open 并提供宽度/高度参数。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.