| Summary: | SmartFields: shows "please narrow search text" when search text specified | ||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Product: | z_Archived | Reporter: | Christoph Thommen <christoph.thommen> | ||||||||||||
| Component: | Scout | Assignee: | Project Inbox <scout.core-inbox> | ||||||||||||
| Status: | CLOSED WONTFIX | QA Contact: | |||||||||||||
| Severity: | normal | ||||||||||||||
| Priority: | P3 | CC: | ivan.motsch, zimmermann | ||||||||||||
| Version: | unspecified | ||||||||||||||
| Target Milestone: | --- | ||||||||||||||
| Hardware: | PC | ||||||||||||||
| OS: | Windows Vista | ||||||||||||||
| Whiteboard: | |||||||||||||||
| Attachments: |
|
||||||||||||||
Created attachment 196874 [details]
Smartfield after changing "search value"
Created attachment 197572 [details]
patch to solve this issue
the attached patch modifies AbstractSmartField so it will use the currently displayed string for search instead of trying to display all rows while already having something selected.
Created attachment 197573 [details]
without the patch applied
Created attachment 197574 [details]
with the patch applied
I visited the source of your mentioned code in the corresponding project. The cause of that behaviour is not inside scout but it is due to a project-specific after-the-fact value decoration and disabling of "all" browsing. That means 1) Key down is the same as "clicking on browse button". If that behaviour is to be changed, we are talking about a CR in functionality that should be discussed first. 2) your lookup service has "browse all" disabled (probably due to large result sets) which correctly results in a blank dropdown with mentioned status text when pressing the down key. You might think about enabling "browse all" and limiting results on the lookup service server side. 3) Whether or not a smartfield contains a value, the key down (and the browse icon) have the same semantics in calling the "getByAll" function on the corresponding lookup service. NOT shipped with eclipse scout 3.7.0 (and won't ship with a later scout release) |
Created attachment 196873 [details] Smartfield When a smartfield value is selected and than the "key-down"-Key is pressed, the message "please narrow search text" appears, even if there are only two resulting rows. This message should only appear, if the smartfield is empty.