Question
IGATE GLOBAL SOLUTIONS
IN
Last activity: 10 Aug 2018 3:05 EDT
A document attached is attached to the Workobject.When WO is opend ,the document is getting opened automatically as a popup. While closing/Submitting the Workobject,the popup needs to close automatically.
Hi,
In our application,when a workobject opened , a document attached to that Workobject is opened automatically as a popup.
While closing/Submitting the Workobject,the popup needs to close automatically.This is my requirement.Popup code was written using Html,scripts.I have tried using Winodw.close() methods but it didnt worked.
Can any one help me out with possible solutions in pega7.1.5
***Edited by Moderator Marissa to update platform capability tags***
Hello Samyuktha,
Thanks for posting your query on PSC.
Correct me if I am wrong, As per the post, workObject is opened automatically as a popup. while closing/submitting the workObject, the popup needs to close automatically, which is not closed.
Alternatively, you need to customize the submit button actions. after calling finish assignment, call a runscript action
Write a sample function in userworkform (OOTB HTML fragment) and you can call the below method to hide the modal dialog.
<script>
function closeModalDialog(){
//pega.u.d.closeOverlay;
//pega.u.d.closeModalFlowAction;
pega.u.d.hideModalWindow();
</script>
This should work and solve your issue.
Let me know, if you have any queries regarding this.
Regards,
Naveen