Join Our 3 MILLION+ Members Today! Register Here | Login
Go Back   BlackBerry Forums at CrackBerry.com > BlackBerry Professionals > App Developers

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
    Thread Author   #1  
Old 09-30-2010, 12:18 AM
CrackBerry Newbie
 
Join Date: Sep 2010
Posts: 5
Likes Received: 0
Thanked 0 Times in 0 Posts
Default Manual Input in ObjectChoiceField

Hi,

is there a way to let a user enter manual Input in a ObjectChoiceField. That means: If there is a value that was often used by the user I want to save it and show it in DropDown next time. If the user want to enter something completly different I want to offer him the possibility to enter free text.

Any ideas?

regards
Reply With Quote Tip this Post
  #2  
Old 09-30-2010, 10:38 AM
Developer - ToySoft
Device(s): 9800 (Torch)
Carrier: Fido
 
Location: Canada
Join Date: May 2008
Posts: 2,756
Likes Received: 48
Thanked 80 Times in 54 Posts
Default

Quote:
Originally Posted by Desertfrog View Post
Hi,

is there a way to let a user enter manual Input in a ObjectChoiceField. That means: If there is a value that was often used by the user I want to save it and show it in DropDown next time. If the user want to enter something completly different I want to offer him the possibility to enter free text.

Any ideas?

regards
that is pretty straight forward. when you create your ObjectChoiceField you can supply the list of choices.

If you want to replace a list with a different set of choices then use this method. pass in a String[] for the Object

void setChoices(Object[] choices)
__________________
Visit our website www.toysoft.ca for Cool BlackBerry Apps!
Follow us @ http://twitter.com/toysoft or visit us at AppWorld
Reply With Quote Tip this Post
Reply
BlackBerry Forums at CrackBerry.com > > BlackBerry Professionals > App Developers   Manual Input in ObjectChoiceField

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes