Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Java Development

Reply
Developer
satish4ru
Posts: 329
Registered: ‎12-17-2010
My Device: Not Specified

how to hide autocompletefield list

hi all ,

 

I am using auto completeField in my application to search one object from many objects here i am using List_Static style but when i enter any element then only i want to display the list other wise i dont want to display the list please help me regarding this is there any chance to hide the list when i didnt enter any thing in the autocompletefield .....

 

please frds its urgent see once..

 

BlackBerry Development Advisor
MSohm
Posts: 14,753
Registered: ‎07-09-2008
My Device: BlackBerry Passport

Re: how to hide autocompletefield list

Have a look at the KeyWordFilterField instead.  It behaves like you describe.  You can see an example of its use in the keyworldfilterdemo included in the BlackBerry Java SDK and BlackBerry JDE.

Mark Sohm
BlackBerry Development Advisor

Please refrain from posting new questions in solved threads.
Problem solved? Click the Accept As Solution button.
Found a bug? Report it using Issue Tracker
Contributor
Dsheel
Posts: 24
Registered: ‎01-24-2011
My Device: 4.2.1(8800), 4.6(9000), 4.7 and above

Re: how to hide autocompletefield list

try using AutoCompleteField.LIST_STATIC
                | AutoCompleteField.LIST_DROPDOWN
                | AutoCompleteField.LIST_SHOW_REQUESTED_FIELD_NAME
                | AutoCompleteField.LIST_EXPAND_ON_HIGHLIGHT

as style in call to super(...) of your auto complete field

Contributor
Dsheel
Posts: 24
Registered: ‎01-24-2011
My Device: 4.2.1(8800), 4.6(9000), 4.7 and above

Re: how to hide autocompletefield list

Hi....My autocompleteField works fine but the problem is : when text is entered the list pops up, now on pressing Escape key the field clears but popup list remains visible.

The only way to remove the popup list now is to select the list.

Note: This only happens in 7.0

 

Please can anyone tell me a solution to this?

BlackBerry Development Advisor
MSohm
Posts: 14,753
Registered: ‎07-09-2008
My Device: BlackBerry Passport

Re: how to hide autocompletefield list

This appears to be an issue with the auto complete field.  I recommend logging this issue in Issue Tracker.

Mark Sohm
BlackBerry Development Advisor

Please refrain from posting new questions in solved threads.
Problem solved? Click the Accept As Solution button.
Found a bug? Report it using Issue Tracker