call an action when close a popup window - how to associate it ?

call an action when close a popup window - how to associate it ?

  
I just want to call an action when my popup window closes by the X (close) option.  As I reuse some screens (inside the popup) that are not prepared to use as popup layout, I don´t send notify from them.
There's no easy way to do that; you'd need to work some jQuery magic to make it happen (like detect the X's link, hook it's "OnClick" to trigger your Action, and the Action calls Popup_Editor_Close" as it's final step).

J.Ja
Thanks for suggestion Justin, but I have found a workaround. I put the following command in the onunload at extended properties:
"parent.OsNotifyWidget(parent.RichWidgets_Popup_Editor_notifyWidget,'" + EncodeJavaScript("closed") + "');"
and it worked.
Hi Liciano Sir,

Your javascript code helped me too. Thanks a lot.

-- Suraj
Yw

Luciano Schiavo wrote:

Thanks for suggestion Justin, but I have found a workaround. I put the following command in the onunload at extended properties:
"parent.OsNotifyWidget(parent.RichWidgets_Popup_Editor_notifyWidget,'" + EncodeJavaScript("closed") + "');"
 and it worked.

Hi Luciano,


How does this work exactly ? I'm trying to call a screen action from the parent screen, not the popup one, but I'm kinda lost on how to call it.


Can you please help me ?


Thank you by advance, 

Jordi.


Jordi Gisbert Ponsoda wrote:

Luciano Schiavo wrote:

Thanks for suggestion Justin, but I have found a workaround. I put the following command in the onunload at extended properties:
"parent.OsNotifyWidget(parent.RichWidgets_Popup_Editor_notifyWidget,'" + EncodeJavaScript("closed") + "');"
 and it worked.

Hi Luciano,


How does this work exactly ? I'm trying to call a screen action from the parent screen, not the popup one, but I'm kinda lost on how to call it.


Can you please help me ?


Thank you by advance, 

Jordi.


Hi Jordi.

In your case you have to use the notify and the link below can help you a little.

https://success.outsystems.com/Documentation/10/Developing_an_Application/Design_UI/Reuse_UI/Communicate_between_Blocks

Cheers