More specifically, .render() with no arguments returns a generator that
allows you to iterate through all the rows. Alternatively, if you pass an
index as the first argument, it will render just that single row. It also
takes a "fields" argument, which can be a list of Field objects limiting
which fields will have their "represent" function applied.
So, in your view, you can do:
{{for objectComment in objectComments.render():}}
Anthony
On Monday, November 3, 2014 7:39:34 AM UTC-5, Leonel Câmara wrote:
>
> You need to use render.
>
> db(db.SuperObjectComment.superObjectID == request.get_vars.filter).
> select().render()
>
> This will call the field's represent on the returned rows and get you what
> you want.
>
--
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 [email protected].
For more options, visit https://groups.google.com/d/optout.