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

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

HI Bilgin,

I did not test, nor review yet. So I comment only at the functionnal level in 
the following.

Yes, this is very interesting. I think everybody reusing the backend crossed 
this issue. In a custom application we introduced the possiblity to look for 
names (or descriptions as you call it) and show thenm in the lookup field. This 
of course because end users often prefer to see names/descriptions than Ids. 
This is also demonstrated in the 2d layered lookups in form widgets examples. 
But this implies to create a hidden field to put the value (Id) really used 
underneath by the targets->services which is a bit redundant and not 
straightworward. So yes IMO, this would be a great enhancement and I'd even 
like to generalize its use. Coupled with the layered lookups it would really 
simplify both developers and end users experiences.

> Show lookup value descriptions
> ------------------------------
>
>                 Key: OFBIZ-3555
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-3555
>             Project: OFBiz
>          Issue Type: New Feature
>          Components: framework
>    Affects Versions: SVN trunk
>            Reporter: Bilgin Ibryam
>            Assignee: Bilgin Ibryam
>            Priority: Minor
>             Fix For: SVN trunk
>
>         Attachments: lookup_description.patch
>
>
> I did a small extention to lookup autocompleter code and now it is able to 
> load description for the lookup field values.
> For example when you load a form with lookup fields, currently you see only 
> the Id in the lookup field (which is not very descriptive). After applying 
> the patch, you will see also a description, next to lookup button. The 
> description value is the same one that appears in the autocompler and it is 
> specifiued for in each lookup screen.
> You will see the description also when a value is returned from a lookup 
> screen or when a value is selected from autocompleter or when you type a 
> valid Id in the lookup field.
> Internally it does an ajax call to get the description for the supplied value 
> in lookup field.
> I'd like to know if you want to see this feature in ofbiz and/or if you have 
> any ideas to improve it.
> Bilgin

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to