Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Auto Populating the Choice Group with ItemStateListener

 
Deepan Devadasan
Ranch Hand
Posts: 226
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Ranchers,

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

http://www.hostj2me.com/downloads/515/1951/MobileApplication.jad
http://www.hostj2me.com/downloads/515/1951/MobileApplication.jar
 
adroit dhanwada
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.

regards
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic