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
..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
Revision: 10282
http://adempiere.svn.sourceforge.net/adempiere/?rev=10282&view=rev
Author: tobi42
Date: 2009-09-18 11:16:13 +0000 (Fri, 18 Sep 2009)
Log Message:
-----------
BF [ 2861223 ] AutoComplete: Ignoring Whitespace in Search String
https://sourceforge.net/tracker/index.php?func=detail&aid=2861223&group_id=176962&atid=879332
Modified Paths:
--------------
trunk/client/src/org/compiere/grid/ed/AutoCompletion.java
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).