[Zope] new be help with Zope / formulator
Garito
garito at sistes.net
Tue Aug 17 04:50:50 EDT 2004
Tuttle, Gene wrote:
>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
>_______________________________________________
>Zope maillist - Zope at zope.org
>http://mail.zope.org/mailman/listinfo/zope
>** No cross posts or HTML encoding! **
>(Related lists -
> http://mail.zope.org/mailman/listinfo/zope-announce
> http://mail.zope.org/mailman/listinfo/zope-dev )
>
>
use field.render(valuetorender) instead of field.render()
More information about the Zope
mailing list