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}}
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}}
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
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
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
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
6 matches
Mail list logo