I tried db.CodeMaster.Code_Example.readable = False
I tried db.CodeMaster.Code_Example.writable = False

Now put the two lines in the action before the grid(...) and it will only 
apply to that grid.

On Tuesday, 11 June 2013 15:34:30 UTC-5, Joe Magaro wrote:
>
> Hi, I am just learning web2py and I have a working grid: 
> form=SQLFORM.grid(db.CodeMaster,editable=auth.has_membership('Editor_Group'), 
> create=auth.has_membership('Editor_Group'),deletable=auth.has_membership('Editor_Group')
>     )
>  
> There is a field in db.CodeMaster that I would like to hide from the grid 
> view, but have it shown in other views.
>  
> I tried db.CodeMaster.Code_Example.readable = False
>  
> That seemed to work except it removed it from all views except edit.
>  
> Any help is appreciated!
>

-- 

--- 
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/groups/opt_out.


Reply via email to