[Zope] Filling a drop-down menu with SQL data (Problem with ar gument passing)
Brad Clements
bkc@murkworks.com
Wed, 23 May 2001 12:34:55 -0400
On 23 May 2001, at 14:41, philipp.robbel@epost.de wrote:
> SELECT Typ FROM <dtml-if expr="TypeName=='Researcher'>
> tblStaffResearchers
> <dtml-else>tblStaffManagement
> </dtml-if>
>
> <dtml-in expr="sqlShowTypes(TypName=Typ)" : again, somehow working but
> again EMPTY SPACES!
<select name="selectedtypes:string">
<dtml-in "sqlShowTypes(_.None,_,TypName=Typ)">
<option value="&dtml-typ;">&dtml-typ;</option>
</dtml-in>
</select>
Note that the Typ outside the dtml-in is not the same as that inside. I suggest you
change the outside Typ to be "TypeName" or something.