[Zope] Using results of SQL in form

Oliver Bleutgen Oliver Bleutgen <myzope@gmx.net>
Tue, 6 Feb 2001 19:53:51 +0100


> I have a Z SQL Method which returns one row and I want to use the data
> from
> it in a form (I am going to detault the input fields with the values from
> the SQL).  I thought using the dtml-in tag would be a simple way of doing
> this but am having problems passing the method the parameter.  In the code
> below the line

>    Edit Video <dtml-var pCode>

> renders pCode into the page but the line

>    <dtml-in expr="getVideoSQL(pCode)">


Hi Ben,
try

<dtml-in expr="getVideoSQL(pCode=pCode)">

cheers,
oliver