Skip to main content
Solved

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

  • April 22, 2022
  • 3 replies
  • 141 views

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.

This post is closed to further activity.
It may be an old question, an answered question, an implemented idea, or a notification-only post.
Please check post dates before relying on any information in a question or answer.
For follow-up or related questions, please post a new question or idea.
If there is a genuine update to be made, please contact us and request that the post is reopened.

3 replies

dustin
Influencer
Forum|alt.badge.img+31
  • Influencer
  • 627 replies
  • 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
  • 8391 replies
  • April 25, 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.

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


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

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