use the fields attribute of the grid. On Wednesday, June 12, 2013 1:35:03 AM UTC+2, Joe Magaro wrote: > > Hi Massimo. > > Perhaps I explained this incorrectly. > > When I added db.CodeMaster.Code_Example.readable = False that did two > things: > a) Removed the Code_Example Field from the Grid (good!) > b) Removed the Code_Example Field from the display view. (Not what I want) > > (a) is what I want, but I when I display the record, I need the field > output on (b) the display view. Is it possible to do this using the grid? > > > On Tuesday, June 11, 2013 5:49:08 PM UTC-4, Massimo Di Pierro wrote: >> >> 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 web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.