Skip to main content
Solved

How to fill Published Parameter with Environment Variable? Startup script or something else?


arekpierchala
Contributor
Forum|alt.badge.img+1

Hi.

I have to create workspace in FME2015 and I need to fill specified Published Parameter with Environment Variable. How can I do that? Via startup script or something else?

Best answer by david_r

Ah, sorry, I see you wanted it in a parameter.

Try using a scripted parameter. Example returning PATH:

Note that the parameter cannot be published, since it's scripted.

View original
Did this help you find an answer to your question?

4 replies

david_r
Evangelist
  • August 19, 2016

Try the EnvironmentVariableFetcher


david_r
Evangelist
  • Best Answer
  • August 19, 2016

Ah, sorry, I see you wanted it in a parameter.

Try using a scripted parameter. Example returning PATH:

Note that the parameter cannot be published, since it's scripted.


mark2atsafe
Safer
Forum|alt.badge.img+44
  • Safer
  • August 19, 2016

The other thing you should be able to do is use ${variablename}

For example, on my FME I created a user parameter of type text and in the default value entered ${appdata}

A ParameterFetcher returned the value of that as C:\\Users\\imark\\AppData\\Roaming


arekpierchala
Contributor
Forum|alt.badge.img+1
  • Author
  • Contributor
  • August 23, 2016
mark2atsafe wrote:

The other thing you should be able to do is use ${variablename}

For example, on my FME I created a user parameter of type text and in the default value entered ${appdata}

A ParameterFetcher returned the value of that as C:\\Users\\imark\\AppData\\Roaming

very nice,

 

thanks, it also works

 

 


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