I need to be able to generate a list of Boolean parameters at runtime, based on the output of a script and I haven't been able to find a way to do this.

I looked into using addChoiceOptionsFromText, but it must be possible for the user to select multiple options, not just one, so I don't think this can work.

Please let me know if there is a way to achieve this, or if any workaround is possible.

Thanks!

asked 04 Apr, 05:43

dspencer12's gravatar image

dspencer12
16124
accept rate: 0%


It's possible to add multiple options with <addChoiceOptionsFromText>.

<addChoiceOptionsFromText>
      <name>your_parameter</name>
      <text>
option1=Option 1
option2=Option 2
option3=Option 3
     </text>
</addChoiceOptionsFromText>

The script would need to output the options in that format to be able to use the stdout of <runProgram>:

<addChoiceOptionsFromText>
      <name>your_parameter/name>
      <text>${program_stdout}</text>
</addChoiceOptionsFromText>
link

answered 05 Apr, 10:57

Michiel's gravatar image

Michiel ♦
82114
accept rate: 22%

From my understanding, that would allow you to add multiple options to a choiceParameter, but the user would then only be able to select one of those options.

(05 Apr, 11:01) dspencer12
Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×8
×3
×2

Asked: 04 Apr, 05:43

Seen: 371 times

Last updated: 05 Apr, 11:01