I am running Java code to prepopulate a parameter's choices.

However, if there are x choices, I want to hide the parameter completely and not prompt for it.

How do I reference the count on the parameter? Can I do something like parameter(myParam).length?


asked 21 Mar '12, 11:15

wildcatz's gravatar image

accept rate: 0%

It is not possible to access <choiceParameter> values. However, if you are using stdout from an application, you can check the number of entries it will generate and then set parameter(myParam).show accordingly.

You can use the XML from Regular expression - count lines in stdout question to get the number of lines or use a regular expression to check if it contains at least the specified number of newlines.

For example:


The above will check that the text contains at least 10 newline characters.


answered 22 Mar '12, 05:23

wojciechka's gravatar image

wojciechka ♦♦
accept rate: 26%

thanks - that's exactly what I was looking for!

(22 Mar '12, 20:47) wildcatz
Your answer
toggle preview

Follow this question

By Email:

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



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



Asked: 21 Mar '12, 11:15

Seen: 845 times

Last updated: 22 Mar '12, 20:47