[web2py] Re: How to use createargs in SQLFORM.grid?

2014-06-03 Thread Fabiano Almeida
In manual dont have example of createargs: while createargs, editargs and viewargs are passed only to the specific create, edit and details SQLFORMs this is the only reference manual Em quarta-feira, 4 de junho de 2014 00h43min27s UTC-3, Fabiano Almeida escreveu: Hi, How to use

Re: [web2py] Re: How to use createargs in SQLFORM.grid?

2014-06-03 Thread Kiran Subbaraman
You can create a dictionary that represents the arguments passed to the SQLFORM(), and pass it in createargs, editargs, viewargs. The code basically updates the SQLFORM (not the grid) with the appropriate create/edit/view args: