[Zope] hidden list

Geir B Hansen geirh@funcom.com
Thu, 16 Dec 1999 10:04:52 +0100


> Once again, mind block:
>
> I would like to pass through a list called roles (built from a
previous
> screen list box). I tried this:
> <input type='hidden' name='roles:list' value='<!--#var roles-->'>
>
> but the result is: ['[']
>
> It should be: ['resale', 'salesRep']
>
> I verified that the variable "roles" actually contains ['resale',
> 'salesRep']
> by displaying: <dtml-var roles>
>
> Any thoughts as to what I'm missing?????
>
> DR


You'll have to use something like :
<input type='hidden' name='roles:list' value='[<dtml-in roles><dtml-var
sequence-item>,</dtml-in>]'>

This might not be the optimal way of doing it, but it will return the
result you want..

AlexR has also written  a nice how-to on lists . You can find it on :
http://www.zope.org/Members/AlexR/SelectionLists

------------------------------------------------
Geir B Hansen
geirh@funcom.com
Web-designer / Graphic artist
Funcom Oslo
http://www.funcom.com
------------------------------------------------