[jira] [Updated] (OFBIZ-6503) Implement easier sorting for form widget fields

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[jira] [Updated] (OFBIZ-6503) Implement easier sorting for form widget fields

Nicolas Malin (Jira)

     [ https://issues.apache.org/jira/browse/OFBIZ-6503?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Christian Carlow updated OFBIZ-6503:
------------------------------------
    Attachment: OFBIZ-6503.patch

This patch seems to deliver the intended functionality.  This is useful for forms that extend their parents but need only a few of their exclusive fields ordered within the original parent field order.

So if a form extends its parent that may have 20 fields but only 1 of the extending form fields needs to be reordered, then the following will allow the field to appear as the third column of the original parent form field sort:
         <sort-order>
            <sort-field name="quantityScheduled" sequence="3"/>
         </sort-order>

> Implement easier sorting for form widget fields
> -----------------------------------------------
>
>                 Key: OFBIZ-6503
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-6503
>             Project: OFBiz
>          Issue Type: Improvement
>          Components: framework
>    Affects Versions: Trunk
>            Reporter: Christian Carlow
>         Attachments: OFBIZ-6503.patch
>
>
> <sort-order> is currently the only way to sort fields but requires all fields to be specified even if only 1 field is out of order.  Extending <sort-field> to support an attribute such as "sequence" could allow for only the field that is out of order to be specified.
> A "sort-seq" attribute could also be extended to <field> but that may require a bit more effort since it would have to be integrated with the current sort logic that uses <sort-order> specs.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)