Posted: 22 Aug 2016 7:29 EDT Last activity: 22 Aug 2016 10:17 EDT
How to communicate with popup window?
I need a way to know when a popup( opened on click using open URL in Window) is closed. For example after a user closes the popup, a property in pega will be changed. Is there a way to implement this kind of listener?
My scenario is:
1. User clicks a button (Pay with PayPal)
2.A popup is opened where the user will accept a payment
3. After the popup is closed a REST request is automatically called and the case proceeds AUTOMATICALLY to the next stage.
Could you please give me a sollution and provide me a snippet of code!
Thank you very much
***Updated by moderator: Lochan to add Categories***
When a modal is opened, you are presented with Ok and Cancel button. I assume that you will be clicking ok. In that case, you can configure your post action activity or data transform to set the property.
Otherwise, you can modify pyModalCancelaction activity by saving it in your local ruleset/ class to set the flag.