[Zope] Looking up other row records in an SQLMethod?

Dieter Maurer dieter@handshake.de
Tue, 15 Aug 2000 20:47:08 +0200 (CEST)


Theodore Patrick writes:
 > Is it possible to look up other SQL record values while iterating through a
 > <DTML-IN>?
I did not understand your requirements.

But the answer is yes:

	<dtml-let query_results=SQLMethod>
	  <dtml-in query_results>
	    ....
	    <dtml-var "query_results[i].field">
	      <!-- this will access "field" of the i-th row-->
	    ...
	  </dtml-in>
	</dtml-let>


Dieter