Hi,

I would like to run a server action before everything on mobile to see if I'm in DEV or QA environment. Does anybody know how to do that? I need to trigger this action before the login screen.


Regards!

Matheus.

Hi Matheus,

You can create Client Actions that will be executed in OnInitialize and within it point to your Server Action. Be very careful with this approach, as putting too many Server Actions in this way can affect the performance of your application.

Solution

Hi Matheus,

You should use the On Application Ready System event, this is an action to be executed when the application is loading (in the home module only). Can be used to to setup the application (e.g. initialize mobile plugins).

https://success.outsystems.com/Documentation/11/Reference/OutSystems_Language/Platform_Utilities/System_Events/Mobile/On_Application_Ready

Regards,

Daniel

Solution