Skip to main content
Solved

How can I get a client environment/system variable available in my code.


Ricky
Superhero
Forum|alt.badge.img+8

We currently use a fixed “C:\TEMP “ to generate reports in a process flow (which is an input parameter for the process), this is using a (windows (gui)) client directory. (and is apparently a workaround for issues we had with the reportconnector according to TCP issue 71858 and it wants to use a temporary directory on the client)

When trying to get our application running at our customers we cannot guarantee they have access to C:\TEMP - especially running virtual instances like Citrix. What we do know is that they have access to the clients environment/system variable ‘%temp%’.

We’d like to get the value of the variable ‘%temp%’ from the client to provide this as the input parameter for the process flow but we do not know how we can get the value of the clients variable.

 

Best answer by Mark Jongeling

While the IO process actions do support environment variables, like %temp%, the Print report process action does not. The session variables are also not the answer to your question.

 

View original
Did this topic help you find an answer to your question?
This topic has been closed for replies.

3 replies

Mark Jongeling
Administrator
Forum|alt.badge.img+23

Hey Ricky,

Jasper has shared a blog post about using Session variables: 

https://community.thinkwisesoftware.com/functionality-89/session-variables-106

In the docs you can find this: 

https://docs.thinkwisesoftware.com/docs/sf/extended_properties.html#docsNav

 

Does this do the trick?


Ricky
Superhero
Forum|alt.badge.img+8
  • Author
  • Superhero
  • 96 replies
  • March 2, 2021

Hi @Mark Jongeling  I’m afraid that would return something that is within the “SQL session context” - but we need the windows client environment variable which is in the “windows client session context” on the clients OS.


Mark Jongeling
Administrator
Forum|alt.badge.img+23
  • Administrator
  • 3945 replies
  • Answer
  • March 4, 2021

While the IO process actions do support environment variables, like %temp%, the Print report process action does not. The session variables are also not the answer to your question.

 


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings