Question
![](/themes/custom/pegacc_theme/images/user-icon.png)
![](/themes/custom/pegacc_theme/images/user-icon.png)
Last activity: 2 Sep 2015 11:50 EDT
Closing all tabs in Dynamic Container in Pega 7.1.7 on button click
Did anyone had luck getting this working in Pega 7.1.7 and above? (Requirement is to close all tabs currently open in Dynamic Container on click of a button in Modal Dialog).
How do we pass the event as parameter for the function: closeAllDocuments
-
Like (0)
-
Share this page Facebook Twitter LinkedIn Email Copying... Copied!
Accepted Solution
![](https://accounts.pega.com/sites/default/files/styles/user_image/public/1689973000/babd7487-6f40-41b6-8a4d-576ed4441694.jpg?itok=enjh6sY0)
![](https://accounts.pega.com/sites/default/files/styles/user_image/public/1689973000/babd7487-6f40-41b6-8a4d-576ed4441694.jpg?itok=enjh6sY0)
Pegasystems Inc.
US
see other thread - Re: Javascript API for closing all tabs? I provided a screenshot of the runscript action
![](https://accounts.pega.com/sites/default/files/styles/user_image/public/1689961000/e281d01d-7963-4fea-b544-6344c1f43953.jpg?itok=bMU4GDhu)
![](https://accounts.pega.com/sites/default/files/styles/user_image/public/1689961000/e281d01d-7963-4fea-b544-6344c1f43953.jpg?itok=bMU4GDhu)
Pegasystems Inc.
US
Hi Govardhan,
While this reply may not exactly be the answer you are looking for based on your scenario, it's a topic that's come up several times now in this community.
Here's a link to a related discussion which, in turn, provides links to other related discussions:
How to "Force Close" all Tabs ?
For my part, given the frequency with which this question has been asked, I can start forming a conclusion that, if there is a proper way to do what you are trying to do, it's not obvious. I can look into whether a feedback item has been raised related to closing multiple tabs and, if not, submit one on our user's behalf.
In the meantime, hope these other discussions provide some guidance and, if not, respond right here explaining why and hopefully you'll get additional community feedback.
Thanks.
B.
![](/themes/custom/pegacc_theme/images/user-icon.png)
![](/themes/custom/pegacc_theme/images/user-icon.png)
Thanks B. I forgot to mention that I referred all of the articles that are in Pega Mesh.
![](https://accounts.pega.com/sites/default/files/styles/user_image/public/1689961000/e281d01d-7963-4fea-b544-6344c1f43953.jpg?itok=bMU4GDhu)
![](https://accounts.pega.com/sites/default/files/styles/user_image/public/1689961000/e281d01d-7963-4fea-b544-6344c1f43953.jpg?itok=bMU4GDhu)
Pegasystems Inc.
US
First, awesome to hear that we are accumulating enough content and discussion that you are referring to it first before posting! Sorry, they didn't help though
Hopefully, this topic grabs someone's attention and you'll get some discussion going soon. If not, we'll do our best to get some eyes on this to help you out.
Thanks.
B.
![](/themes/custom/pegacc_theme/images/user-icon.png)
![](/themes/custom/pegacc_theme/images/user-icon.png)
Hey B, no luck on this yet here. Appreciate if you could pitch in to get some expert advise. I would like to see if anyone got this working in PRPC 7.1.7 before I can raise an SR related to closeAllDocuments method.
![](https://accounts.pega.com/sites/default/files/styles/user_image/public/1689961000/e281d01d-7963-4fea-b544-6344c1f43953.jpg?itok=bMU4GDhu)
![](https://accounts.pega.com/sites/default/files/styles/user_image/public/1689961000/e281d01d-7963-4fea-b544-6344c1f43953.jpg?itok=bMU4GDhu)
Pegasystems Inc.
US
I have reached out to a couple SMEs. They are all based in IST so it may be a day before they have a chance to look. Regardless, I would recommend holding off logging an SR. This sounds like something where even if there is a way to do this, it will be more of a workaround than a solution, which means this would be better served as being raised as an enhancement request, which I can certainly do on your behalf.
Hopefully, you get some feedback soon. And if not I will keep working to try and get this some attention.
I'm glad to see that you are getting some more positive results with some of the other questions you have raise, but thanks for your patience on this one.
Thanks.
B.
Accepted Solution
![](https://accounts.pega.com/sites/default/files/styles/user_image/public/1689973000/babd7487-6f40-41b6-8a4d-576ed4441694.jpg?itok=enjh6sY0)
![](https://accounts.pega.com/sites/default/files/styles/user_image/public/1689973000/babd7487-6f40-41b6-8a4d-576ed4441694.jpg?itok=enjh6sY0)
Pegasystems Inc.
US
see other thread - Re: Javascript API for closing all tabs? I provided a screenshot of the runscript action
![](/themes/custom/pegacc_theme/images/user-icon.png)
![](/themes/custom/pegacc_theme/images/user-icon.png)
Awesome! thanks.