how to pass a list from the .groovy level to screen.xml level?

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

how to pass a list from the .groovy level to screen.xml level?

Patrick-4
How can I pass my variables (I need to pass a list) from the .groovy
level to the screen.xml level?  I'm going to create X forms where X is
the size of my list.  Then I am going to populate the forms with the
list elements.
Thanks in advance
Patrick
Reply | Threaded
Open this post in threaded view
|

Re: how to pass a list from the .groovy level to screen.xml level?

Scott Gray-2
Hi Patrick,

Just assign them to the context map in groovy like this:
context.myListOfStuff = myGroovyList;

Anything assigned to the context map will be available to the screen once the script has run.

Regards
Scott

HotWax Media
http://www.hotwaxmedia.com

On 22/02/2010, at 4:08 PM, Patrick wrote:

> How can I pass my variables (I need to pass a list) from the .groovy
> level to the screen.xml level?  I'm going to create X forms where X is
> the size of my list.  Then I am going to populate the forms with the
> list elements.
> Thanks in advance
> Patrick


smime.p7s (3K) Download Attachment