| Author |
Auto Populating the Choice Group with ItemStateListener
|
Deepan Devadasan
Ranch Hand
Joined: Jan 25, 2007
Posts: 226
|
|
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
|
Theepan Thevathasan
SCJP 1.4, SCWCD 1.4, SCMAD 1.0 SCBCD 1.3, MCP(.Net Frm 2.0 App Dev Fdn)
|
 |
adroit dhanwada
Greenhorn
Joined: Apr 18, 2007
Posts: 16
|
|
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
|
 |
 |
|
|
subject: Auto Populating the Choice Group with ItemStateListener
|
|
|