Why do you expect that your approach gives you the number of results of a query when you don't specify the query? ;-) Try <dtml-var "_.len(Catalog(field1=...,field2=...))"> -aj ----- Original Message ----- From: "Juergen R. Plasser / Hexagon" <plasser@hexagon.at> To: <zope@zope.org> Sent: Friday, June 14, 2002 06:26 Subject: [Zope] Count results of ZCatalog query
How can I count the results of a ZCatalog query? This must be a simple thing...
I have tried <dtml-var "_.len(Catalog)"> but with no success.
Juergen
_______________________________________________ Zope maillist - Zope@zope.org http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )