[Zope] Trying to build a modify form for a database record.

ghaley@mail.venaca.com ghaley@mail.venaca.com
Mon, 23 Apr 2001 10:45:15 -0400 (EDT)


=09Hi.

=09in your <input> line, the value expression should be wrapped in
quotes. =20

<TD><INPUT TYPE=3D"text" NAME=3D"namn" VALUE=3D"<dtml-var namn>" size=3D"50=
"></TD></TR>

this should allow html to return the whole string and not just the first
word in the string.

=09ciao!
=09greg.

=09Gregory Haley
=09DBA/Web Programmer
=09Venaca, LLC

>=20
> =09Hi there,
> When I read from the database and present the values in a list I do the
> following
>=20
> <dtml-in select_statement>
>   <dtml-var column_name>
> </dtml-in>
>=20
> Works like a dream.
>=20
> However I want the user to choose a record to modify and the display the
> complete ( not the key )
> record in a form.
>=20
> <FORM ACTION=3D"modifyUniversitetdo">
> <dtml-var InputTable >
> <dtml-with SQL>
>   <dtml-in select_universitet_tab_with_key>
>     <TR><TH>Namn</TH>
>       <TD><INPUT TYPE=3D"text" NAME=3D"namn" VALUE=3D<dtml-var namn>
> size=3D"50"></TD></TR>
>     <TR><TD></TD>
>       <TD><input type=3Dsubmit value=3D" Lagra information ">
>           <input type=3Dreset value=3D" Rensa formul=E4ret ">
>     </TD></TR>
>   </dtml-in>
> </dtml-with>
> </TABLE>
> </FORM>
>=20
> However when the form is displayed the value in the <dtml-var namn> is cu=
t
> at the first whitespace. How do I do
> to get the whole column value displayed ?
>=20
> Cheers
>=20
> Fred
>=20
>=20
>=20
> _______________________________________________
> Zope maillist  -  Zope@zope.org
> http://lists.zope.org/mailman/listinfo/zope
> **   No cross posts or HTML encoding!  **
> (Related lists -
>  http://lists.zope.org/mailman/listinfo/zope-announce
>  http://lists.zope.org/mailman/listinfo/zope-dev )
>=20
>=20