Support Article
All pop up windows (child windows) are open after log out
SA-65581
Summary
All the popup windows are open after user logs out of the application.
Error Messages
Not applicable
Steps to Reproduce
- Open a work object.
- Click the 'Add or Edit attachment' option.
- Click Log Off on the main window.
Root Cause
A defect in Pegasystems’ code or rules.
Resolution
Perform the following local-change:
- Add the Run Script before Log off action for the Log off menu item click to modify the pyCaseManager navigation rule.
- In the Run script provide 'closeWindows'.
- Add the below script to UserWorkForm HTML rule.
<script>
function closeWindows()
{
var curWin= null; while (null != (curWin= application.openedWindows.pop()))
{
try{ curWin.close(); }catch(e){} } }
pega.u.d.attachOnUnload(closeWindows);
</script>
For more information, refer to: https://community.pega.com/support/support-articles/pop-ups-remain-open-after-logoff
Published October 12, 2018 - Updated October 8, 2020
Have a question? Get answers now.
Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.