[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> </DIV>
<DIV><FONT face=3DArial size=3D2>I have a matrix of checkboxes in =
a=20
form, something like this :</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DArial size=3D2>rows =
=20
col1 =20
col2 =
=20
col3 =
=20
col4</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>row1 =
=20
cb =20
cb =
=20
=20
cb =20
cb</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>row2 =
=20
=20
cb  =
;cb &nbs=
p; cb =20
cb</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>row3 =
=20
cb =
=20
cb =
=20
cb =
=20
cb</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DArial size=3D2>where "cb" is a checkbox</FONT></DIV>
<DIV> </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> the code for the form is =
something like this=20
:</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DArial size=3D2><dtml-in=20
rowsnamesmethod><BR><tr></FONT></DIV>
<DIV><FONT face=3DArial size=3D2><td><dtml-var=20
rowname></td><BR><dtml-in columnsnamesMethod><BR><td=20
align=3D"center"><BR> <input type=3D"checkbox" =
name=3D"<dtml-var=20
rowname>" Value=3D"<dtml-var=20
columnname>"><BR></td><BR></dtml-in></FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </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> </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> </DIV>
<DIV><FONT face=3DArial size=3D2><FONT face=3DArial size=3D2><dtml-in =
rowsnamesmethod></FONT></FONT></DIV>
<DIV><FONT face=3DArial size=3D2><FONT face=3DArial =
size=3D2> <dtml-var=20
rowname></FONT></FONT></DIV>
<DIV><FONT face=3DArial size=3D2></dtml-in></FONT></DIV>
<DIV> </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> </DIV>
<DIV><FONT face=3DArial size=3D2><FONT face=3DArial size=3D2>
<DIV><FONT face=3DArial size=3D2><FONT face=3DArial size=3D2><dtml-in =
rowsnamesmethod></FONT></FONT></DIV>
<DIV><FONT face=3DArial size=3D2><FONT face=3DArial =
size=3D2> <dtml-var=20
<dtml-var <rowname>></FONT></FONT></DIV>
<DIV><FONT face=3DArial size=3D2></dtml-in></FONT></DIV>
<DIV> </DIV>
<DIV>but that's a sintax error, </DIV>
<DIV> </DIV>
<DIV>what should i do ?</DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV>Orlando Sanchez</DIV>
<DIV>Sitecpro</DIV><BR></DIV></FONT></FONT>
<DIV><FONT face=3DArial size=3D2><dtml-<BR></DIV></FONT>
<DIV> </DIV></BODY></HTML>
------=_NextPart_000_0019_01C0FB13.E9E2D000--