There are several fields in my db such as this: db.define_table('fruit', Field('id', 'reference auth_user'), Field('apple','boolean',label=T('Apple')), Field('apricot','boolean',label=T('Apricot')), Field('cherry','boolean',label=T('Cherry')), Field('fig','boolean', label=T('Fig')), Field('lychee','boolean', label=T('Lychee')), Field('peach','boolean', label=T('Peach')), Field('pear','boolean', label=T('Pear')), Field('plum','boolean', label=T('Plum'))) If i want to print items from a specific field i would do:
rows = db(db.fruits)select()for row in rows: return row.apple Now I want to return all data from all fields. How Can i go about it. I have tried: return rows and I get a blank screen. return [rows] and I get [<rows>]. Kind regards -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- 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 web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.