Login  Register

pseudo-pagination for subsets of data compiled by hand

Posted by Leon Torres-2 on Oct 06, 2006; 1:36am
URL: http://ofbiz.116.s1.nabble.com/pseudo-pagination-for-subsets-of-data-compiled-by-hand-tp173019.html

Hi folks,

Is there a way to make the form widget pagination think there is a list of size
1000 when we actually pass it a list of size 20 which is a subset of the 1000 items?

I have 1000 products and my VIEW_SIZE is 20.  In my script, I get the 20 values
from the database according to VIEW_INDEX, then compose a complicated report for
those 20 items.  Then I pass this list of 20 to the form widget.  The form
widget thinks the total list size is 20, so it won't do pagination.

Anyone know a solution to this?  (I tried using the 20 items padded with empty
objects to make a list of size 1000, but this hackery is ugly.)

- Leon