Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 347609

Summary: SmartFields: shows "please narrow search text" when search text specified
Product: z_Archived Reporter: Christoph Thommen <christoph.thommen>
Component: ScoutAssignee: 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:
Description Flags
Smartfield
none
Smartfield after changing "search value"
none
patch to solve this issue
none
without the patch applied
none
with the patch applied none

Description Christoph Thommen CLA 2011-05-30 04:59:59 EDT
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.
Comment 1 Christoph Thommen CLA 2011-05-30 05:00:27 EDT
Created attachment 196874 [details]
Smartfield after changing "search value"
Comment 2 Christian Ulrich CLA 2011-06-08 05:43:45 EDT
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.
Comment 3 Christian Ulrich CLA 2011-06-08 05:45:01 EDT
Created attachment 197573 [details]
without the patch applied
Comment 4 Christian Ulrich CLA 2011-06-08 05:45:17 EDT
Created attachment 197574 [details]
with the patch applied
Comment 5 Ivan Motsch CLA 2011-06-14 10:24:58 EDT
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.
Comment 6 Matthias Zimmermann CLA 2011-06-28 08:13:21 EDT
NOT shipped with eclipse scout 3.7.0 (and won't ship with a later scout release)