On Saturday, May 10, 2014 2:11:04 PM UTC-4, Michael Beller wrote:
>
> If you're using a custom form for input fields, you may need to invoke 
> represent() explicitly.  I found this in 
> https://groups.google.com/forum/#!searchin/web2py/number$20format/web2py/Rn587zKW8MU/lzwVJw7naucJ
> :
>
> {{=db.table.column.represent(record.column, record)}}
>
>
Also, now you can do:

{{for record in rows.render():}}
{{=record.column}}
{{pass}}

The .render() method returns either a single record (if you pass it an 
index), with all represent attributes applied, or an iterator over all the 
records (if no index is supplied, as in the example above).

Anthony

-- 
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.

Reply via email to