Global variables

08 Feb '20, 03:26 PM
17,866 Views
No Forum Badges

Hello,

Inside the project PartnerNetworkApp you use the variable $$TOKEN$$, where is this declared and initialisez. Can I create other global variables?

 

Best Regards.

 
x 0
Follow
Answer Answer at this question and get points!
Forum Expert - Level 8

Hi, the syntax $$TOKEN$$ is reserved to a couple of information.
You cannot declare variables to be used in the same way.
However you can declare additional global variables in the WebRatio.properties file which must be contained in MobileContent/conf folder.
Then you can use those variables in the model with the syntax ${variable_name}
You can find some information reading this article:

https://my.webratio.com/learn/learningobject/how-to-centralize-web-project-properties-in-a-configuration-file

Even though the article refers to Web project, the concepts can be applied also to Mobile projects.

 
x 0
Answer at this question and get points!