Xrm.Utility.openwebresource opens new tab

空扰寡人 提交于 2020-01-04 13:11:26

问题


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.

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?


回答1:


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

  1. window.open()

  2. Unsupported way to open modal dialog - showModalDialog

  3. Xrm.Internal.openDialog()

Source

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



来源:https://stackoverflow.com/questions/46122716/xrm-utility-openwebresource-opens-new-tab

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!