[web2py] Re: How hide comments column (w2p_fc) from SQLFORM.grid() when edit some record

2013-04-25 Thread Christian Espinoza
Thanks Mark! -- --- 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

[web2py] Re: How hide comments column (w2p_fc) from SQLFORM.grid() when edit some record

2013-04-24 Thread Mark
SQLFORM.grid(, editargs=dict(comments=False)) or SQLFORM.grid(, formstyle='bootstrap') On Monday, April 22, 2013 2:15:35 PM UTC-4, Christian Espinoza wrote: > > Hi guys, somebody know how hide the comments column at a edit form using > SQLFORM.grid() ?? > > I can do it using jquery wi

[web2py] Re: How hide comments column (w2p_fc) from SQLFORM.grid() when edit some record

2013-04-22 Thread 黄祥
i think you can achieve it by some conditional in models or controller. e.g. db.define_table('test', Field('test'), Field('test_read'), Field('test_write'), format='%(test)s') *# not show in edit page* show_test_write = request.args(-3) == 'edit' db.test.test_write.writable = db.t