Auto Populating the Choice Group with ItemStateListener
Joined: Jan 25, 2007
I have developed a smal Address book...
This is the scenario.. When the program load and the main screen is shown, there will be two items within a form - TextField(for Searching), A Choice Group(for displaying all the names in the addressbook)
The choice group is poputed with all the contacts on startup..
and i have put a itemStateChanged Action for the search TextField, where whenever the user characters to make up the search key, the Choice Group will be populated for every character incrementally...
The problem here, every chracter rebuilds the Enumeration, meaning a overhead for the device...
I want to have it in a way, the user should be given option to continusly keyin the characters that make the filter criterion, and after some time (a fraction of time) the system starts to take the cumulative character as the search key..
Some please provide me some idea, probably with a code...
By the way, the current, not so efficient app is over here
Hi Thevathasan can you share your java code please. i have to do exactly the same thing.iam not able to figure out how to do. "every chracter rebuilds the Enumeration" how to do that enumeration .iam doing in blackberry env.iam using objectchoicefield & Editfield(Textfield) & FieldchangeListener on textfield kindly help.