Menu

#2104 AutoComplete: Ignoring Whitespace in Search String

closed-fixed
UI Swing (244)
5
2009-10-03
2009-09-18
No

To Reproduce:
1. Create two Products with values
*"Test1"
*"Test 1"

2. Change the settings for Column C_OrderLine.M_Product like this
*Referfence: Table
*Referfence Key: M_Product (no summary)
*Danymic Validation: M_Product (Trx)

->Now the product field in Order Line should be a combo box with auto completion

3. Enter "Test"
-> It should select the "Test1"

4. Enter " "
-> Nothing happens. Instead we would except "Test 1" to be selected now.

Reason:
*Method "startsWithIgnoreCase" in "org.compiere.grid.ed.AutoCompletion" trims both Strings (Method has been added with FR [ 2552854 ]).
*Trim is not feasible in this situation, because we are dealing with substrings and it is not forbidden for them to contain white spaces.

Solution:
*Don't trim

Discussion

  • Tobias Schöneberg

    ..I'm not sure, maybe trimming is there for a good reason...
    ..so I guess the better solution is to trim the leading whitspares, but not the trailing ones

     
  • Tobias Schöneberg

    • status: open --> pending-fixed
     
  • SourceForge Robot

    This Tracker item was closed automatically by the system. It was
    previously set to a Pending status, and the original submitter
    did not respond within 14 days (the time period specified by
    the administrator of this Tracker).

     
  • SourceForge Robot

    • status: pending-fixed --> closed-fixed
     

Log in to post a comment.

MongoDB Logo MongoDB