You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ofbiz.apache.org by "Christian Carlow (JIRA)" <ji...@apache.org> on 2015/06/05 23:02:00 UTC

[jira] [Updated] (OFBIZ-6456) Make sort by field type by default

     [ 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

This patch renders <auto-fields-entity> fields in the following default sort order: display, lookup, text, date, range, dropdown, check, radio, then everything else

Display fields are also ordered by the following modelField.type:
id fields, name fields, date fields, indicator and other text, special fields like email and blob, fixed-point type fields, and finally currency types.

To test the functionality visit ordermgr/control/FindRequest and you'll see a much cleaner find form.  Removing the position attributes from the form fields makes the form appear even cleaner.

I feel like this functionality could really streamline the creation of find/list forms and provide consistency for users when interpreting forms.

I will wait for community review and feedback before attempting to commit.

> 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)