Question
How to replace Window.OpenModalDialog for chrome
We have a solution where we open different application/portal using Window.OpenModalDialog share data using dialog args and receive data from the dialog.
sample code :
var x = window.OpenModalDialog(url,args,options);
if(x=true)
{
//sample logic with received data
submit();
}
if(x= false)
{
//do nothing
}
This code is in section of flow action. The Assignmnet waits in the background. if sucess then assignmnet gets submitted.
This solution does not work in chrome.
Suggestions please to make it work in pega 7.
Hi Anand,
Thanks for writing to PSC. Window.OpenDialog are depreciated as per html5 and are no longer supported.
You can use window.open() instead.
window.open('Page URL'+ '?ParameterName'+ ParameterValue,"","scrollbars=1,resizable=1,Width=1420px,Height=400px,Top=180,Left=80");
Or otherwise you can use Pega API
Use the pega.u.d.modalDialog.show() method which you can find in the processActionModal_Success function definition, this function is defined in the pega_ui_modalDialog.js rule.
Let me know, if any further details required.
Thanks:
Gurpreet