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

Posts: 23
Registered: ‎08-09-2010
My Device: 9800
My Carrier: Airtel
Accepted Solution

AutoCompleteField for Blackberry 4.2

I have to create an AutoCompleteField for supporting blackberry OS 4.2. Below is the screen shots i have attached. I have refereed the blackberry SDK, and AutoCompleteField is available from 5.0 onwards, and i have done it too, but i have to do it for 4.2 SDK. Here are my requirements for the Blackberry device 4.2 and higher. 1. AutoCompleteField with populating the list of the available values for selection. On selection of a particular value it should update the selected item value in the label field below. 2. The AutoCompleteField should allow only to enter digits. http://i.stack.imgur.com/8JAxA.jpg
Posts: 16,992
Registered: ‎07-29-2008
My Device: Z10 LE, Z30, Passport
My Carrier: O2 Germany

Re: AutoCompleteField for Blackberry 4.2

and your question is?

take an editfield with filter_numeric and load the matching results from your data structure. most efficient would be a patricia tree i guess, but there is no impl in the api so you have to write it yourself.
feel free to press the like button on the right side to thank the user that helped you.
please mark posts as solved if you found a solution.
@SimonHain on twitter