6
Views
2
Comments
Solved
Events of screen
Question

Hi All.

This is regarding screen events.

The At start option defines that the screen aggregates are triggered automatically when

Screen is initializing.

Then screen starts Ready event. After ready it starts render.

So assume that my aggregate run before Ready event. Then how outsystems is stopping the  after fetch event  of my aggregate not to trigger, Since Ready event is not yet finished. 


Regards,

Rama

mvp_badge
MVP
Rank: #2
Solution

Hi Ramakrushnarao,

Did you read this page? It details how the various Events are triggered. The On After Fetch isn't "stopped", it's run whenever the Aggregate is finished loading. In an On After Fetch, you are supposed to manipulate the data or set some Local Variables specific to the display of the data. It should not matter whether the On Ready Event has been triggered already or not.

That said, if for some reason the On After Fetch must really be triggered after the On Ready has been triggered, you should set the Aggregates to On Demand and Refresh them in the On Ready handler. The downside is that it will take longer for the data to become available.