Thank you Alan!
> onaccept=lambda form: locate(request.args(0))
It now works as expected!
-Luca.
> "... onvalidation, oncreate, onupdate and ondelete are callback
> functions. All
> but ondelete take a form object as input. ..."
Sorry, those are SQLFORM.grid arguments, the CRUD method signatures
are at 7.4.3 (Methods)
"... onvalidation, oncreate, onupdate and ondelete are callback
functions. All
but ondelete take a form object as input. ..."
I'd try replacing onaccept with something like this (not tested):
onaccept: lambda form: locate(request.args(0))
That way the action will call the function after the form
3 matches
Mail list logo