Question
Close Action is not closing the popup/model dialogue instead it is closing the Work Item
I am using CPMHC 7.3.1 framework
Requirement:I have to show popup/model dialogue on click of Tab close(X) icon which contain Cancel,Save buttons.On click of Cancel popup window should be closed and onclick of save WI should be closed with updated information.
Problem:I have configured close action for Cancel button but on click of Cancel button underlying WI is getting closed instead of popup/model dialogue.
Technical Details:Tab close(X) icon is in System-Recents class section which is in CPMInteractionPortal Harness.Primary page for this X icon at run time is D_CPMPortalRecents.For WI we have TreeNavigation harness which is inside CPMInteractionPortal harness.
So please suggest how to handle this situation in this context.
***Edited by Moderator Marissa to update platform capability tags***
if you want to show something like "Are you sure you want to close" ?
Then use the script pega.u.d.gDirtyOverride = false;
Add it in any of your section if you need it locally or if you need this feature across system, you can add this java script flag in the HTML rule called userworkform.