[OFBiz] Users - Form widget: how to set pagination
Jacopo Cappellato
tiz at sastau.it
Thu Sep 15 11:57:09 EDT 2005
Hi all,
I have a problem with pagination in list forms.
The list forms use default parameters for pagination: 100 rows per page.
However, pagination doesn't really work: if you click over the "next"
link you return to the initial page (i.e. you can only see the first 100
rows).
I know that, if in the screen you set the VIEW_INDEX and VIEW_SIZE
parameters:
<set field="viewIndex" from-field="parameters.VIEW_INDEX" type="Integer"/>
<set field="viewSize" from-field="parameters.VIEW_SIZE" type="Integer"
default-value="50"/>
and in the form definition you add an action tag to call the generic
"performFind" service, pagination will work (and you can also override
the default parameters, as in the above example).
However this is not a good solution for list forms without an action
element (for examples the forms that iterate over a list of elements
prepared by a bsh script).
Am I missing something? How can I make pagination work?
Thanks for your help,
Jacopo
More information about the Users
mailing list