how can I get the environment variables?

Post any questions you have about using the Verj.io Studio, including client and server-side programming with Javascript or FPL, and integration with databases, web services etc.

Moderators: Jon, Steve, Ian, Dave

t4nu
Ebase User
Posts: 305
Joined: Thu Jul 02, 2015 8:32 am
Location: Indonesia

how can I get the environment variables?

#1

Postby t4nu » Wed Feb 17, 2016 3:00 am

Hi,
How can I get the environment variables <env> from within the script?
0 x

Jon
Moderator
Moderator
Posts: 1342
Joined: Wed Sep 12, 2007 12:49 pm

#2

Postby Jon » Wed Feb 17, 2016 9:10 am

0 x

User avatar
Wai
Moderator
Moderator
Posts: 165
Joined: Wed Sep 12, 2007 9:04 am
Location: Sandy, UK
Contact:

#3

Postby Wai » Wed Feb 17, 2016 9:11 am

I am assuming you mean environment variables that you have set-up in web.xml

If so then, you can use

Code: Select all

system.variables.$ENV_NAME_OF_VARIABLE.value
0 x

t4nu
Ebase User
Posts: 305
Joined: Thu Jul 02, 2015 8:32 am
Location: Indonesia

#4

Postby t4nu » Thu Feb 18, 2016 1:57 am

Thank you.
I was doing the same thing previously but seems forgot to restart the server, so when I tried to get the value it gave an error message.
Wai wrote:I am assuming you mean environment variables that you have set-up in web.xml

If so then, you can use

Code: Select all

system.variables.$ENV_NAME_OF_VARIABLE.value
0 x


Who is online

Users browsing this forum: No registered users and 20 guests