[
https://issues.apache.org/jira/browse/OFBIZ-12261?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17373605#comment-17373605
]
ASF subversion and git services commented on OFBIZ-12261:
---------------------------------------------------------
Commit 7120cf7d5f264830385105dea233c7f56998242e in ofbiz-framework's branch
refs/heads/trunk from Nicolas Malin
[ https://gitbox.apache.org/repos/asf?p=ofbiz-framework.git;h=7120cf7 ]
Implemented: Keep paginate list query on dynamic refresh (OFBIZ-12261)
When you display a list with search criteria, pagination information and/or
sort parameters, if you update an element of this list with a update area, you
loose all of them.
Example:
<form name="ListProductMeters" type="list" list-name="productMeters"
target="updateProductMeter" paginate-target="ListProductMeters">
<actions>
<entity-condition entity-name="ProductMeter">...
</actions>
<auto-fields-service service-name="updateProductMeter"/>
<field name="meterName"><text size="20"/></field>
<field name="updateButton"><submit/></field>
<on-event-update-area event-type="paginate"/>
<on-event-update-area event-type="sort-column"/>
<on-event-update-area event-type="submit"/>
</form>
Or this works well if you move an next page sort the list.
I realize the same principle for each event which do a modification of element
in the list and after refresh it.
I also introduce the possibility to submit a form on modal (for edition) when
you press 'enter' that will refresh the origin list.
Last point, the queryString element use to propage pagination state is also
forwarded on callback element to keep this on update the list.
Thanks to Gil Portenseigne is help.
> Keep paginate list query on dynamic refresh
> -------------------------------------------
>
> Key: OFBIZ-12261
> URL: https://issues.apache.org/jira/browse/OFBIZ-12261
> Project: OFBiz
> Issue Type: Sub-task
> Components: framework/widget
> Affects Versions: Trunk
> Reporter: Nicolas Malin
> Assignee: Nicolas Malin
> Priority: Minor
> Attachments: OFBIZ-12261.patch
>
>
> At this time, when you display a list with search criteria, pagination
> information and/or sort paramerters, if you update an element of this list
> with a update area, you loose all of them.
> Example:
> {code:java}
> <form name="ListProductMeters" type="list" list-name="productMeters"
> target="updateProductMeter" paginate-target="ListProductMeters">
> <actions>
> <entity-condition entity-name="ProductMeter">...
> </actions>
> <auto-fields-service service-name="updateProductMeter"/>
> <field name="meterName"><text size="20"/></field>
> <field name="updateButton"><submit/></field>
> <on-event-update-area event-type="paginate"/>
> <on-event-update-area event-type="sort-column"/>
> <on-event-update-area event-type="submit"/>
> </form>{code}
> Or this works well if you move an next page sort the list.
> I propose to use the same idea for each event that realize a modification of
> an element in the list and after refresh it
--
This message was sent by Atlassian Jira
(v8.3.4#803005)