php-reports icon indicating copy to clipboard operation
php-reports copied to clipboard

Pagination

Open alexlewer opened this issue 10 years ago • 3 comments

Is there any support currently for pagination within the reports?

alexlewer avatar May 09 '14 12:05 alexlewer

no built in support. You can fake it with VARIABLE headers thouugh:

-- VARIABLE: {name: "page", default: "1"}

SELECT * FROM MyTable LIMIT {{ (page-1)*20 }}, 20

jdorn avatar May 09 '14 14:05 jdorn

another option is to play with the dataTables implementation in the templates/xxxx/html/report_content.twig file.

if you remove the 'pagination:false' javascript declaration, and you don't mind mucking about with the css a little, you can easily get dataTables to do the pagination work for you. of course, it still downloads the entire dataset and then paginates it in-memory, but it's better than not having that capability at all, imo.

blades avatar Jun 03 '15 19:06 blades

After changed bPaginate: false to bPaginate: true, how to change css to display pagination?

acrodea-vinh avatar Jan 04 '17 17:01 acrodea-vinh