Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 347609 - SmartFields: shows "please narrow search text" when search text specified
Summary: SmartFields: shows "please narrow search text" when search text specified
Status: CLOSED WONTFIX
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: Scout (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows Vista
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-05-30 04:59 EDT by Christoph Thommen CLA
Modified: 2011-06-28 08:13 EDT (History)
2 users (show)

See Also:


Attachments
Smartfield (13.88 KB, image/png)
2011-05-30 04:59 EDT, Christoph Thommen CLA
no flags Details
Smartfield after changing "search value" (17.60 KB, image/png)
2011-05-30 05:00 EDT, Christoph Thommen CLA
no flags Details
patch to solve this issue (786 bytes, patch)
2011-06-08 05:43 EDT, Christian Ulrich CLA
no flags Details | Diff
without the patch applied (4.00 KB, image/png)
2011-06-08 05:45 EDT, Christian Ulrich CLA
no flags Details
with the patch applied (3.86 KB, image/png)
2011-06-08 05:45 EDT, Christian Ulrich CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
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)