[Zope] detailed record display...

Alexander Batzios alexb@runbox.com
Wed, 13 Mar 2002 22:32:33 -0800


This is a multi-part message in MIME format.

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

Hello.

First of all I would like to thank everyone who replied to my previous =
question. Thanks for pointing out that it was called batching and was in =
dtml-in documentation. I did manage to split the results.

However, I still can't figure out how to make the record details appear. =
As I told you, I want the list of the results to be clickable in a field =
(e.g. record field) and when a user clicks on that, the record details =
to appear.

I've created an SQL method called sql_show_details and a Z search =
Interface called show_record_details. I have put "Rec" as the arguments =
in the sql_show_details method. Now, when I display the results I put =
the following entry in the results display form:

<td><a href=3D"show_record_details"><dtml-var Rec null=3D""></a></td>

What I was hoping to achieve, is call the show_record_details interface =
with the Rec dtml-var as a parameter. The show_record_details interface =
calls the sql_show_details method to get the record. However, it seems =
that record 0 is returned all the time. I assume that it doesn't =
actually pass the Rec parameter for that specific row in the table. Is =
there a way I can do that? I tried experimenting with various alteration =
but nothing. In the docs, I've found <dtml-call> which calls a method =
passing all arguments, but it doesn't work from href.

Thank you in advance,
Alex


------=_NextPart_000_004F_01C1CADE.F7E5D670
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 6.00.2713.1100" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>Hello.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>First of all I would like to thank =
everyone who=20
replied to my previous question. Thanks for pointing out that it was =
called=20
batching and was in dtml-in documentation. I did manage to split the=20
results.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>However, I still can't figure out how =
to make the=20
record details appear. As I told you, I want the list of the results to =
be=20
clickable in a field (e.g. record field) and when a user clicks on that, =
the=20
record details to appear.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>I've created an SQL method called =
sql_show_details=20
and a Z search Interface called show_record_details. I have put "Rec" as =
the=20
arguments in the sql_show_details method. Now, when I display the =
results I put=20
the following entry in the results display form:</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>&lt;td&gt;&lt;a=20
href=3D"show_record_details"&gt;&lt;dtml-var Rec=20
null=3D""&gt;&lt;/a&gt;&lt;/td&gt;<BR></FONT></DIV>
<DIV><FONT face=3DArial size=3D2>What I was hoping to achieve, is call =
the=20
show_record_details interface with the Rec dtml-var as a parameter. The=20
show_record_details interface calls the sql_show_details method to get =
the=20
record. However, it seems that record 0 is returned all the time. I =
assume that=20
it doesn't actually pass the Rec parameter for that specific row in the =
table.=20
Is there a way I can do that? I tried experimenting with various =
alteration but=20
nothing. In the docs, I've found &lt;dtml-call&gt; which calls a method =
passing=20
all arguments, but it doesn't work from href.</DIV></FONT>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Thank you in advance,</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>Alex</FONT></DIV>
<DIV>&nbsp;</DIV></BODY></HTML>

------=_NextPart_000_004F_01C1CADE.F7E5D670--