You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

Assigning a variable to a text member using EPBCS groovy

in Planning 14 comments

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.

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!