[web2py] Re: how to use onupdate with grid

2015-06-24 Thread Niphlod
or just onupdate=updateAuthorizationStatus On Tuesday, June 23, 2015 at 9:41:39 PM UTC+2, Alex Glaros wrote: is this right? grid = SQLFORM.grid(db.AuthorizedInstance.id==request.get_vars. specificAuthorizationID, editable=True, deletable=False, create=False, searchable=False,

[web2py] Re: how to use onupdate with grid

2015-06-23 Thread Niphlod
No, it's not a redirect, even if it could be crafted as one. and yep, you are using it wrong. everything on* is a callback, not a string... so it needs to be a function. It takes form as the input. Strictly speaking, onupdate translates to the same thing of the onsuccess callback passed to the

[web2py] Re: how to use onupdate with grid

2015-06-23 Thread Alex Glaros
is this right? grid = SQLFORM.grid(db.AuthorizedInstance.id==request.get_vars. specificAuthorizationID, editable=True, deletable=False, create=False, searchable=False, details=False, csv=False, maxtextlength=5000, onupdate= lambda form:updateAuthorizationStatus(form)) -- Resources: -