11
Views
3
Comments
Solved
Run a server action when a web screen is initialized in Traditional Web
Application Type
Traditional Web
Service Studio Version
11.8.13 (Build 32892)

I want to delete some data from the database prior to a web screen displaying, i.e., on initialization.  I cannot put it in the preparation because I only want it to run once on initialization, during the lifecycle of the screen.

This would be most helpful for many other purposes in my application.

Your help is appreciated.

Leon

mvp_badge
MVP
Rank: #26
Solution

Hi Leon,

If you want to replicate the OnInitialize from the ReactiveWeb, you can place the action inside the preparation, but surround it with an If-widget that has the condition "IsLoadingScreen()".

Kind regards,

Remco Dekkinga

Rank: #3681

Thank you. Exactly what I needed.  I was not aware of that function.

Rank: #286

Hi Remco, 

Your answer will be more helpful for the developers as many of us were not aware about it. That's great.. Thanks