[web2py] Re: why request.vars are added an additional key “records” with null value when I used the sqlform.grid?

2016-09-12 Thread Anthony
Answered here: http://stackoverflow.com/a/39450123/440323 On Monday, September 12, 2016 at 2:37:13 AM UTC-4, Yibing Liu wrote: > > > My web2py version is 2.14.6. > > I define a form in myview.html > >` > > > > > ` > > In my default controler function

[web2py] Re: why request.vars are added an additional key “records” with null value when I used the sqlform.grid?

2016-09-12 Thread Yibing Liu
Thank you very much. Your answer is very clear. 在 2016年9月12日星期一 UTC+8下午5:31:55,Niphlod写道: > > it's to hold selected lines, I think. Anyway, you should use > request.get_vars to get your data (since your method is "get"). Also, > please note that the grid is coded in such a way that the grid is

[web2py] Re: why request.vars are added an additional key “records” with null value when I used the sqlform.grid?

2016-09-12 Thread Niphlod
it's to hold selected lines, I think. Anyway, you should use request.get_vars to get your data (since your method is "get"). Also, please note that the grid is coded in such a way that the grid is the sole "manager" of the request/response cycle, so fiddling in the same page with your own