[Zope] Looping through results (generated by traversing to result object)

Kieran Walshe k_p_w@btconnect.com
Thu, 5 Jul 2001 12:42:10 +0100


This is a multi-part message in MIME format.

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

Hi,

I don't know if anybody can help me but my problem is as follows:

I have managed to set-up a Z SQL query which display results (using =
http://localhost:8080/sql_method/id/12/viewresult), but I have to =
explicitly embed the fields returned from the Z SQL query.


I would like instead to loop over all the fields returned from the Z SQL =
and dynamically generate my report for the record. I think it should be =
something like <dtml-in data_passed_in>..etc

Any help is much appreciated.

Kieran

------=_NextPart_000_0020_01C1054F.E8BF9730
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 http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 5.50.4134.600" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>Hi,</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>I don't know if anybody can help me but =
my problem=20
is as follows:</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>I have managed to set-up a Z SQL query =
which=20
display results (using <A=20
href=3D"http://localhost:8080/sql_method/id/12/viewresult">http://localho=
st:8080/sql_method/id/12/viewresult</A>),=20
but I have to explicitly embed the fields returned from the Z SQL=20
query.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>I would like instead to loop over all =
the fields=20
returned from the Z SQL and dynamically generate my report for the =
record. I=20
think it should be something like &lt;dtml-in=20
data_passed_in&gt;..etc</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Any help is much =
appreciated.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Kieran</FONT></DIV></BODY></HTML>

------=_NextPart_000_0020_01C1054F.E8BF9730--