26
Views
3
Comments
I want to make an "On Begin Web Request" on the mobile app.
Application Type
Mobile
Service Studio Version
11.54.49 (Build 63182)
Platform Version
11.16.0 (Build 36096)

I'm on the mobile app. It works well with 5G communication type, but it does not work well with 4G. 
As a countermeasure, before communicating with the server, call "GetNetworkType" of "OutsystemsUI" and warn if 5G does not come out. Is there a way to implement this process in batches on a module-by-module basis, such as "OnBeginWebRequest" in the TradditionalWeb app, instead of setting it for each screen or button?

2024-12-10 04-40-04
Gitansh Anand

Hi Chappy, You can do this by adding your login to the base layout blocks. When you add a screen, OutSystems creates it with a base layout unless you remove it, so if you add the logic in the base layout, it will get applied to all the screens. You just need to check which layout you are using on the screen, but do keep in mind that it will apply to all the screens, which means that whenever you open a screen, the logic will run. Mostly, it is LayoutTopMenu or LayoutSideMenu for the main flow screens, and LayoutBlank for the login screen.

In case you want to run the logic just once when the application is ready, you can use the OnApplicationReady system event

Thanks
Gitansh Anand

2023-04-14 07-58-09
chappy

アドバイスありがとうございます。表示画面描画時やアプリケーション呼び出し時ではなく、「ServerAction」呼び出し時のみ共通の処理を行う方法はありますか?

2024-12-10 04-40-04
Gitansh Anand

As far as I know, this feature is not available in Reactive, so I guess you will have to apply the logic before each server call manually. 

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.