[Zope] newbie cuestion

Orlando Sanchez osanchez_solint@hotmail.com
Fri, 22 Jun 2001 12:07:31 -0600


This is a multi-part message in MIME format.

------=_NextPart_000_0019_01C0FB13.E9E2D000
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

Hi, am trying to=20

I have a matrix of  checkboxes in a form,  something like this :

rows            col1        col2                col3                col4
row1            cb            cb                    cb                cb
row2            cb            cb                    cb                cb
row3            cb            cb                    cb                cb

where "cb" is a checkbox

the row and colum names are generated at runtime from some sql-methods
 the code for the form is something like this :

<dtml-in rowsnamesmethod>
<tr>
<td><dtml-var rowname></td>
<dtml-in columnsnamesMethod>
<td align=3D"center">
  <input type=3D"checkbox" name=3D"<dtml-var rowname>" =
Value=3D"<dtml-var columnname>">
</td>
</dtml-in>

so the question is : how can I reference the values of my checboxes in =
the result method ?

if i write=20

<dtml-in rowsnamesmethod>
   <dtml-var rowname>
</dtml-in>

it gives me the row names, but I need the values of a checbox named that =
way, i try

<dtml-in rowsnamesmethod>
   <dtml-var <dtml-var <rowname>>
</dtml-in>

but that's a sintax error,=20

what should i do ?


Orlando Sanchez
Sitecpro


<dtml-



------=_NextPart_000_0019_01C0FB13.E9E2D000
Content-Type: text/html;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content=3D"text/html; charset=3Diso-8859-1" =
http-equiv=3DContent-Type>
<META content=3D"MSHTML 5.00.3103.1000" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>Hi, am trying to </FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>I have a matrix of&nbsp; checkboxes in =
a=20
form,&nbsp; something like this :</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>rows&nbsp;&nbsp;&nbsp; =
&nbs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p;=20
&nbsp;&nbsp;&nbsp; cb&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; =
&nbsp;&nbsp;&nbsp;=20
cb&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; =
&nbsp;&nbsp;&nbsp;=20
&nbsp;&nbsp;&nbsp; cb&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; =
&nbsp;&nbsp;&nbsp;=20
&nbsp;&nbsp;&nbsp; cb</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>where "cb" is a checkbox</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>the row and colum names are generated =
at runtime=20
from some sql-methods</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>&nbsp;the code for the form is =
something like this=20
:</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>&lt;dtml-in=20
rowsnamesmethod&gt;<BR>&lt;tr&gt;</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>&lt;td&gt;&lt;dtml-var=20
rowname&gt;&lt;/td&gt;<BR>&lt;dtml-in columnsnamesMethod&gt;<BR>&lt;td=20
align=3D"center"&gt;<BR>&nbsp; &lt;input type=3D"checkbox" =
name=3D"&lt;dtml-var=20
rowname&gt;" Value=3D"&lt;dtml-var=20
columnname&gt;"&gt;<BR>&lt;/td&gt;<BR>&lt;/dtml-in&gt;</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>so the question is : how can I =
reference the values=20
of my checboxes in the result method ?</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>if i write </FONT></DIV>
<DIV><FONT face=3DArial size=3D2><FONT face=3DArial =
size=3D2></FONT></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2><FONT face=3DArial size=3D2>&lt;dtml-in =

rowsnamesmethod&gt;</FONT></FONT></DIV>
<DIV><FONT face=3DArial size=3D2><FONT face=3DArial =
size=3D2>&nbsp;&nbsp; &lt;dtml-var=20
rowname&gt;</FONT></FONT></DIV>
<DIV><FONT face=3DArial size=3D2>&lt;/dtml-in&gt;</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>it gives me the row names, but I need =
the values of=20
a checbox named that way, i try</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2><FONT face=3DArial size=3D2>
<DIV><FONT face=3DArial size=3D2><FONT face=3DArial size=3D2>&lt;dtml-in =

rowsnamesmethod&gt;</FONT></FONT></DIV>
<DIV><FONT face=3DArial size=3D2><FONT face=3DArial =
size=3D2>&nbsp;&nbsp; &lt;dtml-var=20
&lt;dtml-var &lt;rowname&gt;&gt;</FONT></FONT></DIV>
<DIV><FONT face=3DArial size=3D2>&lt;/dtml-in&gt;</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV>but that's a sintax error, </DIV>
<DIV>&nbsp;</DIV>
<DIV>what should i do ?</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;</DIV>
<DIV>Orlando Sanchez</DIV>
<DIV>Sitecpro</DIV><BR></DIV></FONT></FONT>
<DIV><FONT face=3DArial size=3D2>&lt;dtml-<BR></DIV></FONT>
<DIV>&nbsp;</DIV></BODY></HTML>

------=_NextPart_000_0019_01C0FB13.E9E2D000--