[Zope-dev] <dtml-in> how do I get count of records in sequence? (aka batch-size)

Brad Clements bkc@murkworks.com
Mon, 17 Apr 2000 12:02:06 -0500


On 17 Apr 2000, at 17:52, Federico Di Gregorio wrote:

> the right way to do it is to extract a field from the database
> (lets call it "field") and then:
> 
> <dtml-if "_['count-field'] == 1">
> ...
> <dtml-else>
> ...
> </dtml-if>
> 

Right, but as I said in my post, I do *NOT* know any of the field names 
in advance.

This is a generic DTML method that needs to work with any table, 
therefore I can not use "count-xxx".



Brad Clements,                bkc@murkworks.com   (315)268-1000
http://www.murkworks.com                          (315)268-9812 Fax
netmeeting: ils://ils.murkworks.com               AOL-IM: BKClements