You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ofbiz.apache.org by "Nicolas Malin (JIRA)" <ji...@apache.org> on 2015/01/13 23:40:34 UTC
[jira] [Commented] (OFBIZ-3311) Allow to sort widget dropdowns on
items descriptions
[ https://issues.apache.org/jira/browse/OFBIZ-3311?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14276103#comment-14276103 ]
Nicolas Malin commented on OFBIZ-3311:
--------------------------------------
It's old, I completely forget but it's interested to find a solution ;)
> Allow to sort widget dropdowns on items descriptions
> ----------------------------------------------------
>
> Key: OFBIZ-3311
> URL: https://issues.apache.org/jira/browse/OFBIZ-3311
> Project: OFBiz
> Issue Type: Improvement
> Components: ALL APPLICATIONS
> Affects Versions: Trunk
> Reporter: Jacques Le Roux
> Assignee: Nicolas Malin
> Priority: Trivial
> Attachments: dropdown-localised.patch
>
>
> This would be mostly useful for other languages than English, but not only I guess.
> I thought 1st to add an entity-order-by-description attribute to entity-options. But in order to make this change easier I suggest rather to enhance the entity-order-by attribute with a special keyword (say _description_) wich will be used in place of a field-name and used in
> # EntityOptions constructor to bypass the entity-order-by block.
> # And then used in EntityOptions.addOptionValues() to sort entities on their descriptions.
> # If no description is provided for an entity it will be put at end.
> Just a proposition at this stage, there are maybe better way.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)