[Zope] new be help with Zope / formulator

Tuttle, Gene cetuttle at rottlundhomes.com
Mon Aug 16 15:40:55 EDT 2004


I am using this code to display a form


<center>
<table border="10" bgcolor="#999966" cellspacing=0 cellpadding=0>

<!--- get a list of all the fields in the form --->
<dtml-in "AddBuyerForm.get_fields()">

<!--- rename each sequence item to field so they can be used more easily
--->
<dtml-let field=sequence-item>

<tr>
<td align="right"><dtml-var "field.get_value('title')">: </td>
<td><dtml-var "field.render()"></td>
</tr>

</dtml-let>
</dtml-in>
<tr>
<td></td>
<td>
<input type="submit" value="Submit" name="submit">
<input type="submit" value="Done" name="done">
</td>
</tr>
</table>

I want to display some data in some of the forms.
the line:
<td><dtml-var "field.render()"></td> 
will do this.
How do I know what field is being processed.
Given I have a query (ZSQL Method) and  returning values from fields 
with the same names as the fields in the form.  I need to match them up.
Can some help me?

Thanks 
Gene Tuttle


More information about the Zope mailing list