Re: [web2py] web2py grid select all filtred rows
Il 13/08/14 21:29, keiser1080 ha scritto: so on the controler i can get the rows by doing grid.rows? yes The query is also stored on an accessible grid proprety ? I don't know. The code of the function that defines the grid is not so easy to read but you can try to look into it: https://github.com/web2py/web2py/blob/master/gluon/sqlhtml.py#L1854 (for grid) https://github.com/web2py/web2py/blob/master/gluon/sqlhtml.py#L2691 (for smartgrid) Cheers M. -- 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.
Re: [web2py] web2py grid select all filtred rows
Il 12/08/14 19:42, keiser1080 ha scritto: Hi, is there a way to get the query or the list of id from a filtred grid? for example a grid listing all students with pagination = filter data using the search widget of the grid student.age 20 = 2000 rows (multiple pages) = send data to another page or fonction ? Resulting rows you see in grid are saved in attribute rows of your grid object. Does this help you? M. -- 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.
Re: [web2py] web2py grid select all filtred rows
thanks for you reply. I will check tomorro at work. so on the controler i can get the rows by doing grid.rows? The query is also stored on an accessible grid proprety ? -- 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.
[web2py] web2py grid select all filtred rows
Hi, is there a way to get the query or the list of id from a filtred grid? for example a grid listing all students with pagination = filter data using the search widget of the grid student.age 20 = 2000 rows (multiple pages) = send data to another page or fonction ? -- 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.