Your browser was unable to load all of the resources. They may have been blocked by your firewall, proxy or browser configuration.
Press Ctrl+F5 or Ctrl+Shift+R to have your browser try again.

Prompt multi-selection box - How to get 'string' in build step? #4100

fcb_0817 ·

Hi Support,

I have a question, only number can be got in the build step.
2019-05-28_154542.jpg
2019-05-28_154619.jpg

Misc > Execute Script
groovy:
logger.info("Options:" + ${vars.get("select_Test").asList()});

But output in the build log, it showed 'null' instead of string 'BBB' and 'CCC'.
15:40:29,718 INFO - Options:[null, null, 2, 3]

How can I get 'BBB' 'CCC' in multi-selection box?

Thanks,
fcb0817

  • solved #3
  • replies 3
  • views 27
  • stars 0
fcb_0817 ·

Version: 7.0.29

robinshen ADMIN ·

Since you are already inside a groovy script, you should not use ${} to indicate to QB it is a groovy script. Rewriting it as below should work:

groovy:
logger.info("Options:" + vars.get("select_Test").asList());
fcb_0817 ·

It works! Thank you, Robinshen