Skip to main content

This content has been archived and is no longer being updated. Links may not function; however, this content may be relevant to outdated versions of the product.

Support Article

Multiple Window warning

SA-2550

Summary



Users are receiving multiple window warning frequently when they are submitting a item.

Error Messages



Mutiple window warning


Steps to Reproduce



Users sseing this warning on most of the cases


Root Cause



The root cause of this problem is defect/misconfiguration in the PRPC operating environment. 

End users are starting the PRPC application from another application that does a window.open using a window name parameter of "PRPC_<AppName>"

Code new to PRPC in 6.3SP1 is reseting the window name to "" on the pxThread.pxWindowName property when a full user portal gets refreshed. This is required for a specific use case related to snap starting into PRPC. 

The window name at the browser level is still "PRPC_<AppName>" but the clibboard property pxThread.pxWindowName is now "". As the portal refreshes the Mutlitiple Window Warning logic will trigger and display. The Multiple Window Warning is required for all versions of PRPC before 7.1.X.



Resolution



This issue is resolved through the following local change: 


There are two option here. 

1) When using window.open to lauch PRPC 6.3SP1 use a window name of "".

2) Add the following Javascript code to the top panel of your end user portal:

pega.util.Event.addListener(window,"load",removeUnloadHandler);
 
function removeUnloadHandler()
{
   pega.util.Event.removeListener(window,"beforeunload",pega_desktop_onbeforeunloadHandler);
   pega.util.Event.addListener(window,"beforeunload",newUnloadHandler);
}
 
function newUnloadHandler(){
    desktop_setProcessWindowName(window.name);
}

 

Published January 31, 2016 - Updated October 8, 2020

Was this useful?

0% found this useful

Have a question? Get answers now.

Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.

Did you find this content helpful?

Want to help us improve this content?

We'd prefer it if you saw us at our best.

Pega Community has detected you are using a browser which may prevent you from experiencing the site as intended. To improve your experience, please update your browser.

Close Deprecation Notice
Contact us