Hi,
For OS11 mobile, what is the best method to trigger a server action to load initial values from the database.(i.e. when the screen is first rendered, and no onclick action performed).
Was looking at using the screens on initialize etc, but getting a warning regarding performance.
Thanks,
Mark
Hi Mark,
On your mobile screen in service studio:
Regards,
Daniel
Indeed the OnInitialize as also the other screen events should not be used to fetch data.
How to do it correctly is described in the following documentation page
https://success.outsystems.com/Documentation/11/Developing_an_Application/Use_Data/Query_Data/Fetch_and_Display_Data_from_the_Database
Hey Daniel,
Thanks for the link.
In my case I need to do a more complex function with a number of aggregates (where some aggregates are dependent on others and order of execution) so I have a server action in my core module rather than using an aggregate.
Is there a method available to execute a server action instead?
Cheers,
Hi Daniel,
Thanks for the instruction.
Makes much more sense now. Was getting a little confused on how the parameters were made available to the screen when using the data action.
Appreciate all your help