Event lifecycle handlers in web-blocks in web apps
1709
Views
4
Comments
Implemented
Frontend (App Interfaces)
Platform Server Release Oct.2019 CP1

Hello Everyone,


We know that OutSystems mobile development provides the event handlers on blocks. Examples: OnInitialize, OnReady, OnRender, OnParameterChanged etc.


It would be great if some of these event handlers were also provided for web application development in OutSystems.


I can think of a good usecase for the  "OnParameterChanged"event handler.

Whenever parent screen/webblock changes its data , it will cause the parameters used by the child webblock to change.

We generally require to refresh the child webblock from the parent screen action - to trigger re-render of the child webblock. If the parameters are changed, it would be ideal to have the child webblock itself re-render again. This is very much like the "reactive" model followed by many new frameworks. 

Other event handlers for the web-block render lifecycle would also be useful.

Another advantage would be:  the developers would be following a similar programming model on both mobile and web applications. If are able to make the differences smaller between both development types (mobile and web) - it would be great.



Regards,

Chetan

2014-02-07 17-02-43
Vasco Pessanha
Changed the category to
Frontend

I would love this.  Particularly On Parameters Changed.

Changed the status to
Implemented
on 02 Oct 2018

Hi Chetan,

We've implemented your idea. On October 2nd OutSystems has released a new generation of Web Apps that are very similar to mobile apps.  You can read all about Reactive Web Apps on our forum post.

Thank you for your idea. Keep them coming, we are listening.

Thank you Tiago! I will check it out.