Question

Pega CPM Bread Crumb throws Browser PopUp for unsaved changes while reopening WO

Pega CPM Bread Crumb throws Browser PopUp for unsaved changes while reopening WO.

We need to restrict the Browser popup when user clicks on the bread crumb links.

***Edited by Moderator: Lochan to update platform capability tags***

Comments

Keep up to date on this post and subscribe to comments

Pega
May 30, 2019 - 12:10am

Hi,

If the WO is set dirty then it is an expected behaviuor . But if you explicitly want this then you may check with the pycasbreadcrumb control and there you can remove the code :

tools.appendString("<a onclick=\"javaScript:openWorkByHandle('" + sWorkKey + "','','')\">" + sWorkLabel + " (" + sWorkID + ")</A>");

Check if it is helping.

May 30, 2019 - 12:14pm
Response to sahuv1

Hello Sahu,

Thank you for the reply.

I have tried the above approach and the control by removing the WO opening code. I still see the browser popup coming up.Currently we are using CareBreadCrumb from the PegaClinical Ruleset 07-13-10.

Thank You, Gopi

Pega
July 1, 2019 - 8:01am

Hi Gopi,

Thanks for posting.

Can you please try with the below code in the bread-cumb links control. 

   if(window.opener && window.opener.pega && window.opener.pega.u  && window.opener.pega.u.d ){
           window.opener.pega.u.d.gDirtyOverride = false;  
    }

Thank you.