Thanks to both of you!

On Wednesday, April 3, 2013 12:12:29 PM UTC-5, Anthony wrote:
>
> table_rows = [TR(field.label, db(field > 0).count()), _id = field.name + 
> '__row') for field in db.table1]
>
> Note, you don't have to use TD() inside TR() -- it will automatically wrap 
> the TR's components inside TD's.
>
> Anthony
>
> On Wednesday, April 3, 2013 12:12:33 PM UTC-4, Lamps902 wrote:
>>
>> I'd like to do something to this effect: 
>>
>> fields = db.table1.fields()
>>
>> table_rows = [ TR( TD(*[the label associated with the field]*), TD(db(*[the 
>> field]* > 0).count()), _id = field + '__row') for field in fields ] 
>>
>>
>> Any suggestions? Thanks.
>>
>>
>>

-- 

--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to