You are great! Thank you very much. Il giorno giovedì 26 gennaio 2017 01:06:48 UTC+1, Leonel Câmara ha scritto: > > Yes, I'm sorry Andrea, I don't use the grid much nowadays, that's because > you're using request.args(0) and the grid also uses args, when it sees your > arg it thinks it should be a signature and so you get not authorized, so, I > think you need to send your "arg" to the grid so it knows it's yours and > not hers, something like this: > > def lista_asset(): > tipologia = request.args(0) > if tipologia == 'SC': > query = (db.asset.tipo=='SC') & (db.asset.is_active==True) > else: > query = db.asset.is_active==True > db.asset.datadismissione.readable = False > grid = SQLFORM.grid(query, *args**=[tipologia**]*, fields=[db.asset. > seriale,db.asset.nome,db.asset.uo], details=False, create=False, editable= > False, deletable=False, maxtextlength=40) > return locals() > > >
-- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- 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/d/optout.