Hi,
Is there a way to get the environment variables through Servoy programming?
I tried using java.lang.System.getenv(“VARIABLE_NAME”) but the behavior changes when I test it in the application server. It returns null.
Hi,
Is there a way to get the environment variables through Servoy programming?
I tried using java.lang.System.getenv(“VARIABLE_NAME”) but the behavior changes when I test it in the application server. It returns null.
What are you trying to achieve exactly?
The inline java code will work just fine, but you have to realize where the code is running:
Paul
pbakker:
What are you trying to achieve exactly?The inline java code will work just fine, but you have to realize where the code is running:
- SC: on the client machine
- WC/batchprocessors/headlessclients: on the server
Paul
I am running it on a Smart Client. I’d like to get a value in System Environment Variable on the client machine. On the developer mode, it extracts the data correctly. But when I deploy the solution to the server, it already returns null.
This one is working already. I just restarted all applications/OS.
We should take note about what you said about Web Client.
Thanks!