Assigning a variable to a text member using EPBCS groovy
Content (required):
Hi guys!
I am facing a small issue in assigning a variable which contains text using groovy.
I have an array named "Teachers" which contains staff names as below.
Teachers=[Teacher 1, Teacher 2, Teacher 3, Teacher 4]
Also, in EPBCS application, I have a "Text" member.
Now, I want to assign those staff names in the array to the "Text" member.
I am using the following code to achieve this.
But, in the output, instead of staff names (Teacher 1, Teacher2, Teacher 3), I am receiving "{$Teachers[i]}" as below.
It would be great if you guys can let me know if there is any format that I should follow on the RHS side of the code while calling the array.
Tagged:
0