1040
Views
8
Comments
call an action when close a popup window - how to associate it ?
Question
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.
2019-11-12 17-31-26
Justin James
 
MVP
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
2026-04-06 16-39-32
Luciano Schiavo
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.
UserImage.jpg
Jordi Gisbert Ponsoda

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.


2026-04-06 16-39-32
Luciano Schiavo

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


2020-06-17 07-09-57
Ja

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,

Thanks for this it works perfectly as expected.



2026-04-06 16-39-32
Luciano Schiavo

JA 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,

Thanks for this it works perfectly as expected.



You are welcome JA!


2018-11-06 14-26-44
Suraj Borade
Hi Liciano Sir,

Your javascript code helped me too. Thanks a lot.

-- Suraj
2026-04-06 16-39-32
Luciano Schiavo
Yw
Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.