[Zope-DB] Re: number of records in a query result
Tue, 05 Feb 2002 17:40:06 +0200
Panos Hilaris wrote:
> How can I get in a dtml document the number of records in a query
> result given by a Z SQL method? Say, for example, the Z SQL method is
> called sqlTest.
> Thanks in advance,
> Panos Hilaris
I found it! I use <dtml-var expr="_.len(sqlTest())">.
However, <dtml-var expr="_.len(sqlTest)"> does not seem to work (it
always return 1).
With friendly salutations,