I need to represent field_1 dynamically base on another field (field_2) 
that should not be visible to the user in a smartgrid.
However if I set 
db.table1.field_2.writable=db.table1.field_2.readable=False
in order to hide it, then my row parameter to the lambda function of the 
represent settings do not include field_2
so 
db.table1.field_1.represent= lambda val, row: val if row.field_2 else ''
Will generate an error :
Row' object has no attribute 'field_2'
 
Thanks for help

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