[Zope] Re: Setting array variables from a table call

McDonnell, Larry lmcdonnell@protonenergy.com
Tue, 15 Oct 2002 07:45:13 -0400


Hi,

Thanks Maik, looks simple enough.

-----Original Message-----
From: zope-admin@zope.org [mailto:zope-admin@zope.org]On Behalf Of Maik
Jablonski
Sent: Sunday, October 13, 2002 4:58 AM
To: zope@zope.org
Subject: [Zope] Re: Setting array variables from a table call


McDonnell, Larry wrote:
> Hi,
> 
> Can anyone point me to any examples on how to set an array of variables
> after a <dtml-in> call (Customer names) and populate a pull down menu
using
> the select feature? Thanks.
> 

untested, but should work like this:

<dtml-let yourArray="[]">

<dtml-in yourSequence>

  <dtml-call "yourArray.append(CustomerName)">

</dtml-in>

Now you can work with yourArray...

</dtml-let>

cheers, maik

-- 
Maik Jablonski                 __o
www.zfl.uni-bielefeld.de     _ \<_    Deutsche Zope User Group
Bielefeld, Germany          (_)/(_)               www.dzug.org




_______________________________________________
Zope maillist  -  Zope@zope.org
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )