dlizarazo
12 years agoOccasional Contributor
Passing Values from groovy script to properties and Vic Vera
I am getting error message
groovy.lang.MissingPropertyException: No such property: No Such property: ManyValuesFor1Input for class: Script15 error at line 4
Here is my script
def itemList =[2020,1009,2035]
def counter =0
counter = ManyValuesFor1Input.ManyToOne.PropertyValues.PropertyValues["Counter"].value
ManyValuesFor1Input.ManyToOne.PropertyValues["ItemId"].value = itemList[counter]
ManyValuesFor1Input.ManyToOne.PropertyValues["Counter"].value = counter++
groovy.lang.MissingPropertyException: No such property: No Such property: ManyValuesFor1Input for class: Script15 error at line 4
Here is my script
def itemList =[2020,1009,2035]
def counter =0
counter = ManyValuesFor1Input.ManyToOne.PropertyValues.PropertyValues["Counter"].value
ManyValuesFor1Input.ManyToOne.PropertyValues["ItemId"].value = itemList[counter]
ManyValuesFor1Input.ManyToOne.PropertyValues["Counter"].value = counter++