Field('myfield', 'integer', represent=lambda v, r: v if v is not None else 
'')

Maybe we should add an option to the grid for this, as it seems to be a 
common need.

On Thursday, December 11, 2014 7:38:40 AM UTC-5, Yebach wrote:
>
> Hello
>
> In my SQLFORM.grid I have fields of type integer (as in database) and if 
> they are null the presentation in my view is None. I would like to change 
> them to be presented as empty
>
> Any suggestions?
>
> thank you
>

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

Reply via email to