Skip to main content
Solved

User Parameters - Can they be set up to only show up under certain conditions?


Forum|alt.badge.img+2

When the workspace starts I have the user select a certain attribute. Depending on which attribute is chosen I want different user parameters to come up.

 

So for example I have a list of six items. If they pick item 1 then the attribute manager calculates a number of values. I also want it to display different user parameters depending on which inital item is chosen I hope this makes sense? I'm just not sure if I can even do this in FME. I notice any user parameters I create always show up altogether at the beginning.

Best answer by dustin

As far as I know it's not possible to create a 'conditional parameter', based on the resulting values from say the AttributeManager. Parameter values are passed at runtime, so you can't pass values back after you hit run.

 

Depending on what you are doing in the AttributeManager, you could possibly replicate that action in a Scripted parameter. In that Scripted parameter you should be able to reference the public parameter the user is populating.

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

3 replies

dustin
Influencer
Forum|alt.badge.img+31
  • Influencer
  • Best Answer
  • April 22, 2022

As far as I know it's not possible to create a 'conditional parameter', based on the resulting values from say the AttributeManager. Parameter values are passed at runtime, so you can't pass values back after you hit run.

 

Depending on what you are doing in the AttributeManager, you could possibly replicate that action in a Scripted parameter. In that Scripted parameter you should be able to reference the public parameter the user is populating.


david_r
Celebrity
  • April 25, 2022
dustin wrote:

As far as I know it's not possible to create a 'conditional parameter', based on the resulting values from say the AttributeManager. Parameter values are passed at runtime, so you can't pass values back after you hit run.

 

Depending on what you are doing in the AttributeManager, you could possibly replicate that action in a Scripted parameter. In that Scripted parameter you should be able to reference the public parameter the user is populating.

This is correct. Once the workspace has been started, the user parameters can no longer be modified.


Forum|alt.badge.img+2
  • Author
  • April 25, 2022

Ok thanks! Sounds like I need to learn how to do scripted parameters then.


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