[web2py] display only 20 entries in a table

2015-08-20 Thread Iancic Bogdan
I have a lot of entries in the table that I want to display, and as i already have other things on the same page, i want to make this table show only 10-20 entries per page. How can I add that? Here is the code I wrote in view: {{if prints:}} h3{{=T('Print history:')}}/h3 {{i=0}}

[web2py] display only 20 entries in a table

2015-08-20 Thread Iancic Bogdan
I have a lot of entries in the table that I want to display, and as i already have other things on the same page, i want to make this table show only 10-20 entries per page. How can I add that? Here is the code I wrote in view: {{if prints:}} h3{{=T('Print history:')}}/h3 {{i=0}}

Re: [web2py] display only 20 entries in a table

2015-08-20 Thread Johann Spies
Why do not limit your query to 10 or 20 items? Regards Johann On 20 August 2015 at 12:30, Iancic Bogdan bogdan.ian...@gmail.com wrote: I have a lot of entries in the table that I want to display, and as i already have other things on the same page, i want to make this table show only 10-20

Re: [web2py] display only 20 entries in a table

2015-08-20 Thread Johann Spies
You can either use SQLFORM.grid or use a technique explained in the book. Search the book for 'pagination' and look in the results under Other recipes. Regards Johann On 20 August 2015 at 14:34, Iancic Bogdan bogdan.ian...@gmail.com wrote: I want the user to see all the results, but they are

Re: [web2py] display only 20 entries in a table

2015-08-20 Thread Iancic Bogdan
I want the user to see all the results, but they are too many to be shown on a single page. That's why i would like to share them on different pages On Thursday, August 20, 2015 at 2:30:47 PM UTC+2, Johann Spies wrote: Why do not limit your query to 10 or 20 items? Regards Johann On 20

Re: [web2py] display only 20 entries in a table

2015-08-20 Thread Iancic Bogdan
I want the user to see all the results, but they are too many to be shown on a single page. That's why i would like to share them on different pages On Thursday, August 20, 2015 at 2:30:47 PM UTC+2, Johann Spies wrote: Why do not limit your query to 10 or 20 items? Regards Johann On 20