List view pagination and grouping with pdf output

bobede

Member
I have a list with many elements. I needed to create multiple list views showing different elements in each list view much like creating different reports based on the collected information. The information displayed in these lists often needs to printed out so I added in the dompdf plugin. I love that plugin and it works quite well but it does have one shortcoming in that it only seems to render whatever is displayed on the screen in your list results. So if your results are paginated to show 10 results per page then your pdf output might be more than one page long but will only have 10 records displayed within the pdf document. You could output multiple pdf documents but when you print those off it doesn't really look so great. So my issue was removing the pagination. Simple right - just set the results per page to zero and that should fix it. The problem was that my list was setup to be grouped by a given element and no matter what I tried, I could not remove the pagination. Finally I tried removing the Group By option and I was able to display all of the records in a single page. On a whim, I tried to use the Group By option on the front-end page and it did apply the proper grouping and displayed all of the records at once and the pdf output looks good.

So I'm not sure if I'm missing something or not, but I don't know why adding the "group by" option under the lists settings disabled the pagination changes, while adding it on the front end does not. Ideally, I shouldn't have to instruct the end user to select the Group option before exporting the PDF.

Anyone ever encounter this?
 
We are in need of some funding.
More details.

Thank you.

Members online

Back
Top