[web2py] Re: onvalidation in SQLFORM.grid (V2.0.9)

2013-04-25 Thread Martín Miranda
Hiding errors in SQLFORM.grid? for example: form = SQLFORM(db.table): if form.accepts(request.vars, hideerror=True): In SQLFORM.grid? El viernes, 14 de septiembre de 2012 08:25:45 UTC-3, Gerd escribió: > > Hi! > > I receive the following error > > Traceback (most recent call last): >

[web2py] Re: onvalidation in SQLFORM.grid (V2.0.9)

2012-09-14 Thread Gerd
Thanks for your help Massimo Am Freitag, 14. September 2012 16:08:14 UTC+2 schrieb Massimo Di Pierro: > > Hello Gerd, the grid is a grid. It is not a form (although it may contain > forms) therefore it does not have a grid.errors. Embedding into a form does > not solve the problem. > > Yet you c

[web2py] Re: onvalidation in SQLFORM.grid (V2.0.9)

2012-09-14 Thread Massimo Di Pierro
Hello Gerd, the grid is a grid. It is not a form (although it may contain forms) therefore it does not have a grid.errors. Embedding into a form does not solve the problem. Yet you can check if the grid contains a form and whet the errors for that form are: if grid.create_form and grid.create_

[web2py] Re: onvalidation in SQLFORM.grid (V2.0.9)

2012-09-14 Thread Gerd
Hi again! I found it, the right way is if FORM(grid).errors: but unfortunately the response.flash gets not set, it has always the value "Errors in form, please check it out". I tried to set it in index and in check_km with no luck Has someone a good idea? Regards Gerd Am Freitag, 14. Sep