[jira] Created: (OFBIZ-3211) Ajaxifying lookup fields

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

[jira] Created: (OFBIZ-3211) Ajaxifying lookup fields

Nicolas Malin (Jira)
Ajaxifying lookup fields
------------------------

                 Key: OFBIZ-3211
                 URL: https://issues.apache.org/jira/browse/OFBIZ-3211
             Project: OFBiz
          Issue Type: New Feature
          Components: ALL COMPONENTS
    Affects Versions: SVN trunk
            Reporter: Bilgin Ibryam
            Assignee: Bilgin Ibryam
            Priority: Minor
             Fix For: SVN trunk
         Attachments: ajax-loader.gif, ajaxLookup.patch

To see how it works, apply the patch (optionally add ajax-loader.gif to framework\images\webapp\images\) and go to Accounting -> Find Invoices (or to any other screen with form widget that uses LookupPartyName lookup ). Then type some letters to From Party ID  or To Party ID fields.

Bilgin

--
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-3211) Ajaxifying lookup fields

Nicolas Malin (Jira)

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

Bilgin Ibryam updated OFBIZ-3211:
---------------------------------

    Attachment: ajax-loader.gif
                ajaxLookup.patch

> Ajaxifying lookup fields
> ------------------------
>
>                 Key: OFBIZ-3211
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-3211
>             Project: OFBiz
>          Issue Type: New Feature
>          Components: ALL COMPONENTS
>    Affects Versions: SVN trunk
>            Reporter: Bilgin Ibryam
>            Assignee: Bilgin Ibryam
>            Priority: Minor
>             Fix For: SVN trunk
>
>         Attachments: ajax-loader.gif, ajaxLookup.patch
>
>
> To see how it works, apply the patch (optionally add ajax-loader.gif to framework\images\webapp\images\) and go to Accounting -> Find Invoices (or to any other screen with form widget that uses LookupPartyName lookup ). Then type some letters to From Party ID  or To Party ID fields.
> Bilgin

--
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-3211) Ajaxifying lookup fields

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

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

Bilgin Ibryam commented on OFBIZ-3211:
--------------------------------------

btw you'd better use business theme while testing. I still didn't add the necessary styles to other themes.

> Ajaxifying lookup fields
> ------------------------
>
>                 Key: OFBIZ-3211
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-3211
>             Project: OFBiz
>          Issue Type: New Feature
>          Components: ALL COMPONENTS
>    Affects Versions: SVN trunk
>            Reporter: Bilgin Ibryam
>            Assignee: Bilgin Ibryam
>            Priority: Minor
>             Fix For: SVN trunk
>
>         Attachments: ajax-loader.gif, ajaxLookup.patch
>
>
> To see how it works, apply the patch (optionally add ajax-loader.gif to framework\images\webapp\images\) and go to Accounting -> Find Invoices (or to any other screen with form widget that uses LookupPartyName lookup ). Then type some letters to From Party ID  or To Party ID fields.
> Bilgin

--
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-3211) Ajaxifying lookup fields

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

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

Jeroen van der Wal commented on OFBIZ-3211:
-------------------------------------------

Hi Bilgin,

An excellent improvement on the usibility of Ofbiz. I have only a few coments:
1. The results are now ordered by the ID and results display in the <ID> <Description> format. I Could imagine that users want the results displayed in a <Description> <ID> format and sorted accordingly. I noticed that you can set this on the individual lookup but i would be nice to set it on a global level:
        - by id:  [10000] My Company
        - by description: My Company [10000]
In the lookup defintion you then only have to set the  search fields, the id field and the description fields.
2. I would like to see a separate row for each etry returned
3. Could you extend the width of the resultbox to prevent text wrapping

Jeroen

> Ajaxifying lookup fields
> ------------------------
>
>                 Key: OFBIZ-3211
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-3211
>             Project: OFBiz
>          Issue Type: New Feature
>          Components: ALL COMPONENTS
>    Affects Versions: SVN trunk
>            Reporter: Bilgin Ibryam
>            Assignee: Bilgin Ibryam
>            Priority: Minor
>             Fix For: SVN trunk
>
>         Attachments: ajax-loader.gif, ajaxLookup.patch
>
>
> To see how it works, apply the patch (optionally add ajax-loader.gif to framework\images\webapp\images\) and go to Accounting -> Find Invoices (or to any other screen with form widget that uses LookupPartyName lookup ). Then type some letters to From Party ID  or To Party ID fields.
> Bilgin

--
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] Issue Comment Edited: (OFBIZ-3211) Ajaxifying lookup fields

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

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

Jeroen van der Wal edited comment on OFBIZ-3211 at 11/18/09 12:33 PM:
----------------------------------------------------------------------

Hi Bilgin,

An excellent improvement on the usibility of Ofbiz! I have only a few coments:
# The results are now ordered by the ID and results display in the <ID> <Description> format. I Could imagine that users want the results displayed in a <Description> <ID> format and sorted accordingly. I noticed that you can set this on the individual lookup but i would be nice to set it on a global level, In the lookup defintion you then only have to set the  search fields, the id field and the description fields:
#*by id:  [10000] My Company
#*by description: My Company [10000]
# I would like to see a separate row for each etry returned
# Could you extend the width of the resultbox to prevent text wrapping

Jeroen

      was (Author: jcvanderwal):
    Hi Bilgin,

An excellent improvement on the usibility of Ofbiz. I have only a few coments:
1. The results are now ordered by the ID and results display in the <ID> <Description> format. I Could imagine that users want the results displayed in a <Description> <ID> format and sorted accordingly. I noticed that you can set this on the individual lookup but i would be nice to set it on a global level:
        - by id:  [10000] My Company
        - by description: My Company [10000]
In the lookup defintion you then only have to set the  search fields, the id field and the description fields.
2. I would like to see a separate row for each etry returned
3. Could you extend the width of the resultbox to prevent text wrapping

Jeroen
 

> Ajaxifying lookup fields
> ------------------------
>
>                 Key: OFBIZ-3211
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-3211
>             Project: OFBiz
>          Issue Type: New Feature
>          Components: ALL COMPONENTS
>    Affects Versions: SVN trunk
>            Reporter: Bilgin Ibryam
>            Assignee: Bilgin Ibryam
>            Priority: Minor
>             Fix For: SVN trunk
>
>         Attachments: ajax-loader.gif, ajaxLookup.patch
>
>
> To see how it works, apply the patch (optionally add ajax-loader.gif to framework\images\webapp\images\) and go to Accounting -> Find Invoices (or to any other screen with form widget that uses LookupPartyName lookup ). Then type some letters to From Party ID  or To Party ID fields.
> Bilgin

--
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] Issue Comment Edited: (OFBIZ-3211) Ajaxifying lookup fields

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

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

Jeroen van der Wal edited comment on OFBIZ-3211 at 11/18/09 12:35 PM:
----------------------------------------------------------------------

Hi Bilgin,

An excellent improvement on the usibility of Ofbiz! I have only a few coments:
# The results are now ordered by the ID and results display in the <ID> <Description> format. I Could imagine that users want the results displayed in a <Description> <ID> format and sorted accordingly. I noticed that you can set this on the individual lookup but i would be nice to set it on a global level, In the lookup defintion you then only have to set the  search fields, the id field and the description fields:
#* by id:  [10000] My Company
#* by description: My Company [10000]
# I would like to see a separate row for each etry returned
# Could you extend the width of the resultbox to prevent text wrapping

Jeroen

      was (Author: jcvanderwal):
    Hi Bilgin,

An excellent improvement on the usibility of Ofbiz! I have only a few coments:
# The results are now ordered by the ID and results display in the <ID> <Description> format. I Could imagine that users want the results displayed in a <Description> <ID> format and sorted accordingly. I noticed that you can set this on the individual lookup but i would be nice to set it on a global level, In the lookup defintion you then only have to set the  search fields, the id field and the description fields:
#*by id:  [10000] My Company
#*by description: My Company [10000]
# I would like to see a separate row for each etry returned
# Could you extend the width of the resultbox to prevent text wrapping

Jeroen
 

> Ajaxifying lookup fields
> ------------------------
>
>                 Key: OFBIZ-3211
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-3211
>             Project: OFBiz
>          Issue Type: New Feature
>          Components: ALL COMPONENTS
>    Affects Versions: SVN trunk
>            Reporter: Bilgin Ibryam
>            Assignee: Bilgin Ibryam
>            Priority: Minor
>             Fix For: SVN trunk
>
>         Attachments: ajax-loader.gif, ajaxLookup.patch
>
>
> To see how it works, apply the patch (optionally add ajax-loader.gif to framework\images\webapp\images\) and go to Accounting -> Find Invoices (or to any other screen with form widget that uses LookupPartyName lookup ). Then type some letters to From Party ID  or To Party ID fields.
> Bilgin

--
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-3211) Ajaxifying lookup fields

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

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

Bilgin Ibryam updated OFBIZ-3211:
---------------------------------

    Attachment: ajaxLookup.patch

 - Added possibility to specify more than one fields to search for a match.
 - Added some defaults, so ajaxifying a lookup screen is as easy as specifying two fields:entityName and fieldNames
 - Show only 10 records in the autocompleter, which is configurable from widget.properties. (I was wondering would it be better to use EntityListIterator for the search ?)
 - Move hard coded image location from markup to css.
 - Added autocompleter to LookupPerson lookup.


> Ajaxifying lookup fields
> ------------------------
>
>                 Key: OFBIZ-3211
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-3211
>             Project: OFBiz
>          Issue Type: New Feature
>          Components: ALL COMPONENTS
>    Affects Versions: SVN trunk
>            Reporter: Bilgin Ibryam
>            Assignee: Bilgin Ibryam
>            Priority: Minor
>             Fix For: SVN trunk
>
>         Attachments: ajax-loader.gif, ajaxLookup.patch, ajaxLookup.patch
>
>
> To see how it works, apply the patch (optionally add ajax-loader.gif to framework\images\webapp\images\) and go to Accounting -> Find Invoices (or to any other screen with form widget that uses LookupPartyName lookup ). Then type some letters to From Party ID  or To Party ID fields.
> Bilgin

--
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-3211) Ajaxifying lookup fields

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

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

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

Hi Bilgin,

I used FF3.5.5 on Windows Xp and nothing happened. It worked well with Opera, IE8 and Chrome.
For FF it's maybe because FF stores previously entered strings in fields or maybe I have a plugin which interfer.

Nice feature!

Thanks

> Ajaxifying lookup fields
> ------------------------
>
>                 Key: OFBIZ-3211
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-3211
>             Project: OFBiz
>          Issue Type: New Feature
>          Components: ALL COMPONENTS
>    Affects Versions: SVN trunk
>            Reporter: Bilgin Ibryam
>            Assignee: Bilgin Ibryam
>            Priority: Minor
>             Fix For: SVN trunk
>
>         Attachments: ajax-loader.gif, ajaxLookup.patch, ajaxLookup.patch
>
>
> To see how it works, apply the patch (optionally add ajax-loader.gif to framework\images\webapp\images\) and go to Accounting -> Find Invoices (or to any other screen with form widget that uses LookupPartyName lookup ). Then type some letters to From Party ID  or To Party ID fields.
> Bilgin

--
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-3211) Ajaxifying lookup fields

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

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

Scott Gray commented on OFBIZ-3211:
-----------------------------------

Here's a few comments, nothing that blocks committing your patch, just things we need to think about improving at some point:
- you can't search for a string that spans across multiple fields e.g. entering firstName and a partial lastName will return no results.  I guess we can't do anything about this until the entity engine supports string concatenation (it doesn't right?).
- when the session has expired the autocompleter stops working properly but no feedback is given to the user
- I'm not sure if we're worried about this right now but I've noticed that autocompleters used by other apps often hide the key from the user and only display the description in the textbox (much like a dropdown).  Only raising this here as something we need to think about supporting.
- we should avoid returning html from the server since it is specific to the script.aculo.us autocompleter and instead return a json object which can then be converted in whatever format is necessary.
- we should use EntityFindOptions.setMaxRows rather than trimming the results after the search


> Ajaxifying lookup fields
> ------------------------
>
>                 Key: OFBIZ-3211
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-3211
>             Project: OFBiz
>          Issue Type: New Feature
>          Components: ALL COMPONENTS
>    Affects Versions: SVN trunk
>            Reporter: Bilgin Ibryam
>            Assignee: Bilgin Ibryam
>            Priority: Minor
>             Fix For: SVN trunk
>
>         Attachments: ajax-loader.gif, ajaxLookup.patch, ajaxLookup.patch
>
>
> To see how it works, apply the patch (optionally add ajax-loader.gif to framework\images\webapp\images\) and go to Accounting -> Find Invoices (or to any other screen with form widget that uses LookupPartyName lookup ). Then type some letters to From Party ID  or To Party ID fields.
> Bilgin

--
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-3211) Ajaxifying lookup fields

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

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

Bilgin Ibryam commented on OFBIZ-3211:
--------------------------------------

Thanks guys for your reviews and comments. I did some more changes according to your comments and committed it to trunk in #894149

Jeroen,  you can show/hide the returned values(keys) from widget.properties Also each entry is in separate line and there is no text wrapping any more.

Jacques, it works for me using FF3.5.5 on vista. No idea what prevented it in your case.

Scott, I used setMaxRows and added possibility to hide/show the key in the list. As for the error message and using json, this will require changes in scriptaculous library.

I will keep the issue open for later improvements. Here are few more things to improve:
 - add possibility to pass target-parameter from the lookup.
 - add possibility to add extra conditions to search query (for example to filter disabled parties)

> Ajaxifying lookup fields
> ------------------------
>
>                 Key: OFBIZ-3211
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-3211
>             Project: OFBiz
>          Issue Type: New Feature
>          Components: ALL COMPONENTS
>    Affects Versions: SVN trunk
>            Reporter: Bilgin Ibryam
>            Assignee: Bilgin Ibryam
>            Priority: Minor
>             Fix For: SVN trunk
>
>         Attachments: ajax-loader.gif, ajaxLookup.patch, ajaxLookup.patch
>
>
> To see how it works, apply the patch (optionally add ajax-loader.gif to framework\images\webapp\images\) and go to Accounting -> Find Invoices (or to any other screen with form widget that uses LookupPartyName lookup ). Then type some letters to From Party ID  or To Party ID fields.
> Bilgin

--
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-3211) Ajaxifying lookup fields

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

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

Adrian Crum commented on OFBIZ-3211:
------------------------------------

Bilgin,

I had to make a small change to your code (rev 940245) because the empty img element created invalid HTML, and adding empty attributes to it (to make it valid HTML) caused problems with some browsers.

It would be best if the span element was left empty and the JavaScript code inserted the img element when needed.


> Ajaxifying lookup fields
> ------------------------
>
>                 Key: OFBIZ-3211
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-3211
>             Project: OFBiz
>          Issue Type: New Feature
>          Components: ALL COMPONENTS
>    Affects Versions: SVN trunk
>            Reporter: Bilgin Ibryam
>            Assignee: Bilgin Ibryam
>            Priority: Minor
>             Fix For: SVN trunk
>
>         Attachments: ajax-loader.gif, ajaxLookup.patch, ajaxLookup.patch
>
>
> To see how it works, apply the patch (optionally add ajax-loader.gif to framework\images\webapp\images\) and go to Accounting -> Find Invoices (or to any other screen with form widget that uses LookupPartyName lookup ). Then type some letters to From Party ID  or To Party ID fields.
> Bilgin

--
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-3211) Ajaxifying lookup fields

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

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

Bilgin Ibryam commented on OFBIZ-3211:
--------------------------------------

Thanks Adrian.

BTW in rev 940274 I moved the span and img creation to javascript, but I think it doesn't solve the empty src attribute problem. At least now it the renderer is cleaner.

> Ajaxifying lookup fields
> ------------------------
>
>                 Key: OFBIZ-3211
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-3211
>             Project: OFBiz
>          Issue Type: New Feature
>          Components: ALL COMPONENTS
>    Affects Versions: SVN trunk
>            Reporter: Bilgin Ibryam
>            Assignee: Bilgin Ibryam
>            Priority: Minor
>             Fix For: SVN trunk
>
>         Attachments: ajax-loader.gif, ajaxLookup.patch, ajaxLookup.patch
>
>
> To see how it works, apply the patch (optionally add ajax-loader.gif to framework\images\webapp\images\) and go to Accounting -> Find Invoices (or to any other screen with form widget that uses LookupPartyName lookup ). Then type some letters to From Party ID  or To Party ID fields.
> Bilgin

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