0
 Followers
2
 Likes

Event lifecycle handlers in web-blocks in web apps

Frontend
New

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

Created on 16 Oct 2018
Comments (2)

Changed the category to Frontend


I would love this.  Particularly On Parameters Changed.

views
249
Followers
0