Agile (MOSC)

MOSC Banner

Groovy scripting multilist populaation for Agile PLM API

edited Jul 23, 2012 10:52AM in Agile (MOSC) 2 commentsAnswered
  We are trying to populate the default values of a multilist field with the use of a groovy script.

The following Java code was used as a starting point from the SDK guide. Various attempts to try different variations of this but the only way the multilist is populated is when the list is hardcoded.

We can't seem a way to populate multiple values like would be intended by the script below. Any samples of how to accomplish this in Groovy for Agile PLM would be much appreciated.

listProdLine.setValue("hardcoded value");

An attempt was made to to create an object as follows according to the JDK.  It looks like this syntax will no work in Groovy as it gives an invalid token error when validating as well as there is some mention online of this syntax no working in Groovy, only in Java.

Howdy, Stranger!

Log In

To view full details, sign in to My Oracle Support Community.

Register

Don't have a My Oracle Support Community account? Click here to get started.

Category Leaderboard

Top contributors this month

New to My Oracle Support Community? Visit our Welcome Center

MOSC Help Center