Posted: 17 Aug 2017 8:47 EDT Last activity: 16 Oct 2018 12:03 EDT
Launch of popup should create a new thread
Got a functionality to open a popup on click of a link with a new thread. Configuration includes an action of "Open URL in window" on click of link wherein "RedirectAndRun" activity is called with a thread name, accessgroup name and purge thread set to true. Though this creates a popup (child window) with a new thread, the activities performed in either of windows, i.e., parent(main screen) or child(popup) reflect in each other such as on click of logoff in popup, main portal/screen log offs as well which is not desired. So, any suggestion on creation of new thread for poup on click of link which is independent of old thread...
***Edited by Moderator Marissa to add SR Details***
**Moderation Team has archived post**
This post has been archived for educational purposes. Contents and links will no longer be updated. If you have the same/similar question, please write a new post.
I didn't confirm the behavior on an OOTB sample, But, technically, when you launch a child window from the parent and log off from the parent, I feel you should close the child too and not let it linger. What is your use case for which you want the child to persist even when you attempt to log off from the main application?
The use case is that of smart dispute app wherein the csr should be able to perform actions in child window even when the parent window is logged off. The said functionality was part of pega 5.5 and this has to be retained as part of upgrade to pega 7.2.1. Also, the child window closes off once any action is performed in the parent window which is again not an ideal work case since actions performed in parent should not affect the child window.
The core issue arises when we perform any action in the parent window and the child window closes off. Even a click on submit triggers a closure of child window. Any means to avoid this behavior or an alternative to run 2 different windows at the same time would be highly helpful. As per the present configuration, RedirectAndRun activity does create a new thread for the child window but any action in the parent window closes the child window though both are on different threads.