#1 Is it possible to use Runtime environment variables in JS ?
Posted: Fri Jul 13, 2018 11:48 am
If yes kindly share the code snippet.
#2 Re: Is it possible to use Runtime environment variables in JS ?
Posted: Sat Jul 14, 2018 12:05 am
The Runtime Environment Variables under Static Data are used as part of the build process to replace end point URLs that are specified in Interfaces. Those variables are not available at runtime to the JS environment.
If the requirement is to change URLs runtime, then the recommended approach is to have a database table and store URLs in that table. An interface can be created in Appzillon on that table and the retrieved values can be used in JS. When any specific URL needs to be modified, then this approach allows you to update without any redeployment.