[jira] [Updated] (OFBIZ-6456) Make <auto-fields-entity> sort by field type by default

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

[jira] [Updated] (OFBIZ-6456) Make <auto-fields-entity> sort by field type by default

Nicolas Malin (Jira)

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

Christian Carlow updated OFBIZ-6456:
------------------------------------
    Attachment: OFBIZ-6456_2.patch

I'm resubmitting the patch so that the functionality only happens when an <auto-fields-entity> exists.

This functionality would be better implemented by extending the framework so that the default sort for field types could be determined by xml rather than being hardcoded.  An xml file needs to exist to map field types like currency-amount and currency-precise to the same default auto-fields-entity sort order.

If this patch is approved then <auto-fields-service> should also eventually be handled for its field types.

> Make <auto-fields-entity> sort by field type by default
> -------------------------------------------------------
>
>                 Key: OFBIZ-6456
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-6456
>             Project: OFBiz
>          Issue Type: Improvement
>          Components: framework
>    Affects Versions: Trunk
>            Reporter: Christian Carlow
>         Attachments: OFBIZ-6456_2.patch
>
>
> IMO, form widgets are generally easier to interpret when the field types are sorted by type but this has to be done manually using <sort-order>.  I propose improving auto-fields-entity to sort fields by type by default such as text, then dates, then numbers, etc.



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