Global front-end variable

0
Hi, in native mobile app, I look for a way to retrieve current user data from Administration.Account entity and have it available along with its associated data across the entire app. Without repeating data view with the same nanoflow source or passing it via page parameter. Is it possible to achieve this with Studio v9, or do I need to upgrade to latest versions having page variables?
asked
2 answers
4

Hello Tomas, 

You ca achieve this with below approach

1.using page variable. 

2.using java script action

  - Create a JavaScript action that stores the data in a global variable 

 - Access this variable throughout your app via other JavaScript actions

3.create a non persistent entity, store your required details during statup and use it through retrieve whenever required. 

answered
1

Hi Thomas, unfortunately there's no way to declare something similar to a global variable and use it in pages without using data views.

Your options would be, as you said, to upgrade and use page variables or write a custom JS component to achieve a similar effect.

answered