[web2py] Re: SQLFORM.grid w/ selectable generates multiple requests

2016-09-22 Thread Anthony
On Thursday, September 22, 2016 at 2:14:41 PM UTC-4, Anthony wrote: > > On Thursday, September 22, 2016 at 6:45:55 AM UTC-4, Scott Hunter wrote: >> >> Because I don't need it. The original call tells me enough to make the >> modifications I need to do, and then proceeds to build an up-to-date

[web2py] Re: SQLFORM.grid w/ selectable generates multiple requests

2016-09-22 Thread Anthony
On Thursday, September 22, 2016 at 6:45:55 AM UTC-4, Scott Hunter wrote: > > Because I don't need it. The original call tells me enough to make the > modifications I need to do, and then proceeds to build an up-to-date grid, > which becomes wasted effort because I'm getting a redirect re-build

[web2py] Re: SQLFORM.grid w/ selectable generates multiple requests

2016-09-22 Thread Scott Hunter
Because I don't need it. The original call tells me enough to make the modifications I need to do, and then proceeds to build an up-to-date grid, which becomes wasted effort because I'm getting a redirect re-build the page I just built. - Scott On Wednesday, September 21, 2016 at 3:19:15 PM

[web2py] Re: SQLFORM.grid w/ selectable generates multiple requests

2016-09-21 Thread Anthony
> The section of the online book about this says the lambda in the >> selectable should be a redirect; when it was, I still got 2 requests, but >> the second had an added var w/ the selected IDs. >> > > The book doesn't say the callback should do a redirect -- that's just an > example. In any

[web2py] Re: SQLFORM.grid w/ selectable generates multiple requests

2016-09-21 Thread Anthony
On Wednesday, September 21, 2016 at 1:16:29 PM UTC-4, Scott Hunter wrote: > > I think I understand; seems like something that should be documented, as > well as able to be disabled. > Is it causing a problem for you? Why do you need to disable the redirect? Anthony -- Resources: -

[web2py] Re: SQLFORM.grid w/ selectable generates multiple requests

2016-09-21 Thread Scott Hunter
I think I understand; seems like something that should be documented, as well as able to be disabled. On Wednesday, September 21, 2016 at 12:37:52 PM UTC-4, Anthony wrote: > > On Wednesday, September 21, 2016 at 9:36:14 AM UTC-4, Scott Hunter wrote: >> >> Here's a simple controller using an

[web2py] Re: SQLFORM.grid w/ selectable generates multiple requests

2016-09-21 Thread Anthony
On Wednesday, September 21, 2016 at 9:36:14 AM UTC-4, Scott Hunter wrote: > > Here's a simple controller using an SQLFORM.grid w/ selectable: > > def open_requests(): > print 'Req: %r' % request.vars > query = ... > form = SQLFORM.grid(query, csv=False, details=False,

[web2py] Re: SQLFORM.grid w/ selectable generates multiple requests

2016-09-21 Thread Scott Hunter
If I have the controller function return a string if there is a 'records' variable, the second request is not made; however, then it does not redisplay the form. On Wednesday, September 21, 2016 at 9:36:14 AM UTC-4, Scott Hunter wrote: > > Here's a simple controller using an SQLFORM.grid w/