Hi Ernest,
Most of the time there are no differences between grids and forms. It seems you
crossed one.
Please create a Jira with the information below and we will try to understand
and maybe fix it.
The best would be to upload the complete work you did for us to test in trunk.
BTW, which OFBiz version are you using?
TIA
Jacques
Le 31/01/2024 à 02:32, Ernest Hocking a écrit :
Good morning everyone
I've been trying to use the grid widget and have some questions. I've
basically copied the product ListProduct grid from ProductForms.xml, and
added the target to the controller.xml into a plugin but encountered some
issues:
1. Next/previous pagination seemes not to work: Page 2,3,.. just repeat
page 1. If I set the "items per page" to a value greater than the
number of returned records the grid shows all of them. How do I fix
pagination so tjhat ?
2. The product example uses: list-name="list" in the grid
specification and the performFInd:
<grid name="ListProducts" list-name="list"
paginate-target="FindProduct" override-list-size="true"
odd-row-style="alternate-row" default-table-style="basic-table
hover-bar" header-row-style="header-row-2">
<actions>
<set field="entityName" value="Product"/>
<service service-name="performFindList" result-map="result"
result-map-list="list">
I tried to rename the list to something else e.g. ListDetail in the grid
specification and the service call but then no records are returned.
Any thoughts on how to fix the pagination would be welcome. Is there a
document describing how to use the grid widget? I did a search online but
did not find anything.
thanks and kind regards
Ernest