[
https://issues.apache.org/jira/browse/OFBIZ-3555?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12845321#action_12845321
]
Bilgin Ibryam commented on OFBIZ-3555:
--------------------------------------
Jacques, I think we are on the same page.
The final goal is to have possibility for displaying description/name
instead_of OR together_with the ID. In most of other web based systems it is
the way you described: the ID is stored in a hidden field, and the description
is in the input box. I think this can be easily done once we have the
descriptions available. But as you already know ofbiz lookup definitions don't
have information about how to get the description information (there is only
lookup url) so I decided to reuse the autocompleter logic and get the
description the same way.
Note that autocompleter and lookup descriptions are available only to form
widget lookups which refer to lookup screens with autocompleter support. Once
we are sure that it is covered in most of ofbiz screen we can think on hiding
the IDs totally (or it can be configured) and display only the description.
> 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.