[jira] Created: (OFBIZ-3311) Allow to sort widget dropdowns on items descriptions

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

[jira] Created: (OFBIZ-3311) Allow to sort widget dropdowns on items descriptions

Nicolas Malin (Jira)
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: SVN trunk
            Reporter: Jacques Le Roux
            Priority: Trivial
             Fix For: SVN trunk


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 is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply | Threaded
Open this post in threaded view
|

[jira] Updated: (OFBIZ-3311) Allow to sort widget dropdowns on items descriptions

Nicolas Malin (Jira)

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

Nicolas Malin updated OFBIZ-3311:
---------------------------------

    Attachment: dropdown-localised.patch

Hi Jacques,

I use this follow solution :
 When dorp-down use an entity with  localized label, force the order by in memory and not by database. I added a generic functionin EntityUtil to use this method for other case.

Nicolas

> 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: SVN trunk
>            Reporter: Jacques Le Roux
>            Priority: Trivial
>             Fix For: SVN trunk
>
>         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 is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply | Threaded
Open this post in threaded view
|

[jira] Commented: (OFBIZ-3311) Allow to sort widget dropdowns on items descriptions

Nicolas Malin (Jira)
In reply to this post by Nicolas Malin (Jira)

    [ https://issues.apache.org/jira/browse/OFBIZ-3311?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12891963#action_12891963 ]

Jacques Le Roux commented on OFBIZ-3311:
----------------------------------------

Hi Nicolas,

I tried it and looked at the "Type de rôle" in https://localhost:8443/partymgr/control/main, it was not sorted. I did not look into details, could you put me on the right track please?

Thanks

> 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: SVN trunk
>            Reporter: Jacques Le Roux
>            Priority: Trivial
>             Fix For: SVN trunk
>
>         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 is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply | Threaded
Open this post in threaded view
|

Re: [jira] Commented: (OFBIZ-3311) Allow to sort widget dropdowns on items descriptions

Malin Nicolas
Ok jacques I check my patch, It's possible that have missed some correction.

Nicolas          

Jacques Le Roux (JIRA) a écrit :

>     [ https://issues.apache.org/jira/browse/OFBIZ-3311?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12891963#action_12891963 ]
>
> Jacques Le Roux commented on OFBIZ-3311:
> ----------------------------------------
>
> Hi Nicolas,
>
> I tried it and looked at the "Type de rôle" in https://localhost:8443/partymgr/control/main, it was not sorted. I did not look into details, could you put me on the right track please?
>
> Thanks
>
>  
>> 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: SVN trunk
>>            Reporter: Jacques Le Roux
>>            Priority: Trivial
>>             Fix For: SVN trunk
>>
>>         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.
>>    
>
>