Xrm.Utility.openwebresource打开新选项卡 [英] Xrm.Utility.openwebresource opens new tab

查看:342
本文介绍了Xrm.Utility.openwebresource打开新选项卡的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们有一个onprem crm2016。单击功能区按钮,我将打开一个html Webresource。我正在使用 Xrm.Utility.openWebResource(...)。问题在于我们使用的是IE11,所有用户的浏览器都配置为让IE决定如何打开弹出窗口。

We have an onprem crm 2016. I'm opening an html webresource on a click of a ribbon button. I'm using Xrm.Utility.openWebResource(...). The problem with that is we're using IE11 and all users' browsers are configured to let IE decide how to open pop ups.

猜猜是什么,IE决定打开一个新标签页!有没有一种方法可以在不更改用户浏览器选项的情况下在新窗口中打开html网络资源?

Guess what, IE decides to open a new tab! Is there a way to open an html web resource in a new window without changing the users' browser options?

推荐答案

Xrm.Utility.openWebResource()在Chrome中的性能有所不同到IE11。

Xrm.Utility.openWebResource() performs different in Chrome compared to IE11. Below options are there, pick it what suits you.


  1. window.open()

打开模式对话框的不受支持的方法- showModalDialog

Unsupported way to open modal dialog - showModalDialog

Xrm.Internal.openDialog()

来源

Xrm.Utility.openEntityForm()可以选择提及为 openInNewWindow = true windowOptions 中的c>不适用于 openWebResource()

Xrm.Utility.openEntityForm() has an option to mention as openInNewWindow = true in parameter windowOptions which is not available for openWebResource()

这篇关于Xrm.Utility.openwebresource打开新选项卡的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆