Question
How to "Force Close" all Tabs ?
Below is the screenshot which show the pop up message when I try to close all documents.
When I perform any action in the tab, and on Change of the drop down (highlighted in Red in screenshot) value, the property “pyWarndirty” is being set to true. Is there is way to set it false so that we don’t see the pop up and the tabs are closed always.
The requirement is to force close the documents, and start everything new, every time on change of the dropdown.
The script I am using, is as follows:
pega.u.d.gDirtyOverride=false; // I am trying to set the Dirty flag to false, but it is not overriding.
pega.desktop.closeAllDocuments(e); // to close all tabs.
Any suggestions will be greatly appreciated. Thank you!***Updated by moderator: Lochan to close 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.
Hello Sri,
As mentioned by one of my colleagues, there has already been some discussion on this topic in the Pega Support Community.
Please reference the following links for additional information:
Javascript API for closing all tabs?
Version 6.3 sp1: How to close multiple dynamic container tabs on close of one tab?