Skip to main content
Solved

How to use Multiple Choice parameter.

  • September 2, 2020
  • 2 replies
  • 217 views

fme_hans
Contributor
Forum|alt.badge.img+5

I created a Choice Multiple parameter and when i start the workspace i can check some values. But how can i test on the checked values? I tried a tester but that doesn't seem to work.

Best answer by ebygomm

It's much more difficult than it should be, especially if any of your choices contain spaces!

You could use the MultiChoiceParamSplitter custom transformer to put all your choices in a list and then use a ListSearcher to test for if a value matches one of the list items.

 

You can turn the parameter into a comma separated list, and then use this as the value with the IN operator in the tester. If you have no spaces in your options this is fairly straightforward to do.

 

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

2 replies

ebygomm
Influencer
Forum|alt.badge.img+38
  • Influencer
  • Best Answer
  • September 2, 2020

It's much more difficult than it should be, especially if any of your choices contain spaces!

You could use the MultiChoiceParamSplitter custom transformer to put all your choices in a list and then use a ListSearcher to test for if a value matches one of the list items.

 

You can turn the parameter into a comma separated list, and then use this as the value with the IN operator in the tester. If you have no spaces in your options this is fairly straightforward to do.

 


fme_hans
Contributor
Forum|alt.badge.img+5
  • Author
  • Contributor
  • September 2, 2020

Thanks, that 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