问题
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.
window.open()
Unsupported way to open modal dialog -
showModalDialog
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