If you dig into the openStdDlg
function you may find it leveraging showModalDialog
(not sure it does) which was removed from Chrome a while back.
An alternative unsupported way which should still work is Mscrm.CrmDialog
. So you can try something like:
var dialogWidth = 500;
var dialogHeight = 500;
//replace with your lookup dialog URL
var lookupDialogUrl = Xrm.Page.context.getClientUrl() + "/_controls/lookup/lookupinfo.aspx?AllowFilterOff=0&...";
var callbackRef = function(r){alert(r)};
//instantiate dialog
var dialogWindow = new window.top.Mscrm.CrmDialog(Mscrm.CrmUri.create(lookupDialogUrl), window, dialogWidth, dialogHeight);
//set callback to execute when selection is made and dialog closes
dialogWindow.setCallbackReference(callbackRef);
dialogWindow.show();
The above would launch a lookup dialog (once you fill in the rest of the lookup path) and then in your callback you can use the result from the lookup dialog for whatever you need.
openStdWin
, works both on IE and Chrome. – dynamicallyCRM