Re: [web2py] Re: search db, return table with pagination

2014-08-16 Thread Anna Kostikova
Thanks Andriy! this is exactly what caused the problem. Is it also possible to make such request via ajax? e.g. when user submit a request, then instead of page reload and the check whether rows has something, the arguments from search box is passed via ajax and then the table is returned to the u

[web2py] Re: search db, return table with pagination

2014-08-14 Thread Andriy
Thats because your "rows = None" until you submit the form. You can add this check in the template: *{{if rows:}}* {{for i,row in enumerate(rows):}} ... ... next {{pass}} *{{pass}}* Or you can try set rows to empty list in controller: def search(): *rows = []* -- Resources: - http://web2py

[web2py] Re: search db, return table with pagination

2014-08-14 Thread Anna Kostikova
I have also tried to the information from here - https://web2py.wordpress.com/category/web2py-and-tables/ but it also didn't work with the same error "NoneType' object is not iterable" On Wednesday, 13 August 2014 22:14:46 UTC+2, Anna Kostikova wrote: > > Dear list, > > I am trying to create a s