20
Views
2
Comments
Solved
Global variables in Reactive?
Application Type
Reactive

Hi there.

I'm making a reactive application, which will have to access some data from a database table very frequently (it basically must be available in every single screen). That data won't change. However, I was wondering if there is a more efficient way to keep this information accessible without having to query the database every single time?

Something like a global variable that I can access at any time, from every screen of the app. That way I won't have to query the database too often.


Any ideas would be highly appreciated :)

mvp_badge
MVP
Rank: #131
Solution

Hello Yizuhi

You Can use client variables to store the data. Please see info here: https://success.outsystems.com/Documentation/11/Reference/OutSystems_Language/Data/Handling_Data/Client_Variable


BR,

Luís 

Rank: #236

Hello Yizuhi,

You can also think of storing values in session storage/Local storage, look at the below component.

https://www.outsystems.com/forge/component-overview/6978/local-storage-reactive

Sachin