Sharing context between screens

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

Sharing context between screens

tuvok
Hi,

is there some way I can add some value to the list in one screen, for example:
<set field="myList[]" value="1" global="true" to-scope="user"/>

and when I add second value in another screen, for example:
<set field="myList[]" value="2" global="true" to-scope="user"/>

I want to have myList in context with elements {1, 2}.
All I succeeded to do was second screen overwriting the first value, so i would get context.myList = {2}

tnx
Reply | Threaded
Open this post in threaded view
|

Re: Sharing context between screens

olivier.heintz Neogia.org
Hi,

Le 08/02/2012 13:56, tuvok a écrit :
> Hi,
>
> is there some way I can add some value to the list in *one screen*, for
> example:
> <set field="myList[]" value="1" global="true" to-scope="user"/>
>
> and when I add second value in *another screen*, for example:
just before, read it from context
<set field="myList" from-field="myList" from-scope="user"/>
> <set field="myList[]" value="2" global="true" to-scope="user"/>
>
> I want to have myList in context with elements {1, 2}.
> All I succeeded to do was second screen overwriting the first value, so i
> would get context.myList = {2}
>
> tnx
>