Multiple grids will display, but because each grid uses request.args and 
request.get_vars for its internal functionality (sort, search, add, view, 
edit, delete), those functions will not work as expected, as a link clicked 
from one grid will control all grids on the page.

Anthony

On Monday, December 31, 2018 at 7:24:00 PM UTC-5, Vlad wrote:
>
> originally I saw it elsewhere, but have just located it in the book:
>
> Multiple grids per controller function
>
> Because of the way grid works one can only have one grid per controller 
> function, unless they are embedded as components via LOAD. To make the 
> default search grid work in more than one LOADed grid, please use a 
> different formname for each one.
>
> this is from here: 
> http://www.web2py.com/books/default/chapter/29/07/forms-and-validators#SQLFORM-grid
>
> but given that it works just fine, or at least seems to work - I am 
> wondering what's the extent of the problem. I don't use ajax or even 
> different formnames - I simply threw a few grids on the page and didn't 
> notice anything wrong. 
>
> On Mon, Dec 31, 2018 at 7:11 PM <jonathan.cl...@whatho.net> wrote:
>
>> Where is that warning?
>>
>> I also have multiple grids per page which work well.
>>
>> -- 
>> 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.
>>
>

-- 
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.

Reply via email to