How communication between widget and parent page works on Outsystems 11

Hi everyone,

The communication between the widgets and parent page changed on Outsystems 11. If you start using the new version you will find that Notify and NotifyGetMessage were deprecated. To accomplish the same behavior on Outsystems 11 you need to use the events of the widgets. In attachment I created a simple example of what you should do to send information that is inside a widget to the parent page something that was done before with Notify.

Regards,

Marcelo

Ho Marcelo,

Thanks for sharing this. I think the new evens on webblocks is a great improvement, would like to see more features introduced in OutSystems Mobile to make it to OutSystems Web.

Regards,

Daniel

Hi Marcelo,


Thanks for this, it helped me understand the events. But is there any way to return information from a popup with events? Because I created a web block with the popup in it, but I can't use a web block as destination from the button. And if I add it to a page,


Regards,

Loïc

Hi Loic,

For popups you still need to use Deprecated_Notify and Deprecated_NotifyGetMessage . This was something that Outsystems overlook and I hope they fix it in later releases.

Regards,

Marcelo

Marcelo, 

Olá Marcelo,
Desculpe pelo Inglês.
Estou usando o OS11, e uma simples pesquisa parou de funcionar, e está da seguinte forma.
Tenho um botão Ajax, chamando o refresh, a ação não executa quando está com esse método, basta trocar para Submit e funciona, você saberia o porque ?

Richwidget's Popup Upload still need NotifyGetMessage()...

Harlin Setiadarma wrote:

Richwidget's Popup Upload still need NotifyGetMessage()...

can you provide sample popup code from outsystems 11


It's still the same with 10.

But you need to add dependency and use deprecated notify popup.

Harlin Setiadarma wrote:

It's still the same with 10.

But you need to add dependency and use deprecated notify popuppopup is not opening

popup is not opening,it is opening in normal page without header and footer,,any link or example will be helpful..

Here's OML for simple Popup without notify.


I tried to add Deprecated_Notify, but strangely I cannot add it to my action flow.

See screenshot below.

Hi Harlin,

I have the same problem I can't add the Deprecated_Notify. I already reported it.

Regards,

Marcelo

Hello,


I found new "Popup_Editor_GetMessage" action was added from Platform Server Release Apr.2019 CP1.

https://success.outsystems.com/Support/Release_Notes/11/Platform_Server#New_in_Platform_Server_Release_Apr.2019_CP1

Should I use this action instead of Deprecated_Notify?


Regards,

Ayumi

Hi,

Popup_Editor_GetMessage is to replace Deprecated_NotifyGetMessage. To replace Deprecated_Notify you already had on richwidgets Popup_Editor_Notify.

Regards,

Marcelo

Hi, Just to clarify a little.

Until OS version 10 the following was the way to send message to a parent, from Web Block and Popup:

Web Block:
    To send a message: Notify
    To recover the message in the OnNotify screen action (parent): NotifyGetMessage

Popup
    To send a message: Popup_Editor_Notify
    To recover the message in the OnNotify screen action (parent): NotifyGetMessage

In OS11, the web block notification mechanism was deprecated and replaced by the EVENTS.

But for the Popup, no changes were made.
Initially:

    To send a message: Popup_Editor_Notify
    To recover the message in the OnNotify screen action (parent): Deprecated_NotifyGetMessage

Now:

    To send a message: Popup_Editor_Notify
    To recover the message in the OnNotify screen action (parent): Popup_Editor_GetMessage

So, Popup_Editor_Notify does not replace Notify, as both existed and are used in a different context (popup versus web blocks). 

The problem is that Richwidget is not "updatable", as it is a true system component (as System), and only when the platform server is updated the Richwidgets is also updated.

Anyone not yet using the platform release where the Popup_Editor_GetMessage was introduced will have to keep using the Deprecated_NotifyGetMessage action from System.

Cheers.

Hi,

Thank you for the clarification.

Regards,

Ayumi