Support Article
On click event not working for button control
SA-30469
Summary
On click event is configured for button control to open navigation rule. This event is not firing once the work item is resolved.
Error Messages
Not Applicable
Steps to Reproduce
1.Add a button in the review harness to show the menu on click on this with a condition that when a work item is in resolved state.
2.Create any case and open it in a review Harness.
Root Cause
An issue in the custom application code or rules, there is a transaction id mismatch was happening.
Resolution
In a non autogenerated section put the below code :
<script>
var newurl = SafeURL_createFromURL(pega.u.d.url);
pega.u.d.url = newurl.toURL();
var url = document.forms[0].action;
var formURL = SafeURL_createFromURL(url);
formURL.put("pzFromFrame","");;
document.forms[0].action= formURL.toURL();
</script>
Published November 22, 2016 - Updated October 8, 2020
Have a question? Get answers now.
Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.