[Zope] Indirection Revisted

Andreas Kostyrka andreas@mtg.co.at
Mon, 23 Aug 1999 08:26:57 +0200 (CEST)


On Sun, 22 Aug 1999, Timothy Grant wrote:
> <input type="text" name="<dtml-var Category>_qty" size="5" value="">
> 
> This works beautifully and I end up with a bunch of variables named
> things like "Config_qty", "Harddrive_qty", etc.
> 
> I now need to access these variables in the next form. The name of the
> variable is contained in "Category"
> 
> <dtml-var Category> gives me the part of the variable name before the
> underscore.
> 
> I tried to get <dtml-var expr="<dtml-var Category> + '_qty'"> to work,
<dtml-var "_[Category+'_qty']">

Andreas
--
Andreas Kostyrka                     | andreas@mtg.co.at
phone: +43/1/7070750                 | phone: +43/676/4091256   
MTG Handelsges.m.b.H.                | fax:   +43/1/7065299
Raiffeisenstr. 16/9                  | 2320 Zwoelfaxing AUSTRIA