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

Rubinstein Fredrik fredrik.rubinstein@ivf.se
Mon, 23 Apr 2001 13:44:38 +0200


	Hi there,
When I read from the database and present the values in a list I do the
following

<dtml-in select_statement>
  <dtml-var column_name>
</dtml-in>

Works like a dream.

However I want the user to choose a record to modify and the display =
the
complete ( not the key )
record in a form.

<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>

However when the form is displayed the value in the <dtml-var namn> is =
cut
at the first whitespace. How do I do
to get the whole column value displayed ?

Cheers

Fred