BlackBerry Forums Support Community
              

Closed Thread
 
Thread Tools
Old 05-20-2008, 01:56 AM   #1
Vigu
Knows Where the Search Button Is
 
Join Date: Feb 2008
Model: 7100T
PIN: N/A
Carrier: Vodafone
Posts: 15
Default drop down box

Please Login to Remove!

hi guys,
during run time i get some values thru net,i store it in a vector, jus one column.i wana put all this values in drop down box.how do i do it.i don wana use radiobutton or checkbox.i want it in drop down so that i can b in the same page.how to go abt it.should i use list field or choice field
Offline  
Old 05-20-2008, 02:42 AM   #2
simon.hain
CrackBerry Addict
 
Join Date: Apr 2005
Location: hamburg, germany
Model: 8900
Carrier: o2
Posts: 838
Default

choicefield should do what you want
__________________
java developer, Devinto, hamburg/germany
Offline  
Old 05-20-2008, 03:52 AM   #3
Vigu
Knows Where the Search Button Is
 
Join Date: Feb 2008
Model: 7100T
PIN: N/A
Carrier: Vodafone
Posts: 15
Default

can u tell me,how to pass the vector into choice field
Offline  
Old 05-20-2008, 07:48 AM   #4
CELITE
Thumbs Must Hurt
 
Join Date: Dec 2005
Model: 8310
Carrier: Rogers
Posts: 138
Default

Code:
Object[] array = new Object[ vector.size() ];
Vector.copyInto( array );
ObjectChoiceField ocf = new ObjectChoiceField( array );
Keep in mind that this will take all the elements in the array and call toString() on them to render the objects.
Offline  
Closed Thread



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


10 PCS 1K,2 K,5K,10K,20K100K,1Mohm Linear Taper Rotary Potentiometer US Stock picture

10 PCS 1K,2 K,5K,10K,20K100K,1Mohm Linear Taper Rotary Potentiometer US Stock

$9.49



10 turn Potentiometer 3590S Wirewound Variable Resistor Precision multi-turn POT picture

10 turn Potentiometer 3590S Wirewound Variable Resistor Precision multi-turn POT

$51.49



US Stock 10 Units 100K B100K OHM Linear Taper Rotary Potentiometer POT Red Knob picture

US Stock 10 Units 100K B100K OHM Linear Taper Rotary Potentiometer POT Red Knob

$9.49



Clarostat RA20LASD103A 10K OHM Wirewound 10000 Ohm Potentiometer Industrial POT picture

Clarostat RA20LASD103A 10K OHM Wirewound 10000 Ohm Potentiometer Industrial POT

$14.19



10K Ohm Rotary Potentiometer Variable Dial Resistor Precision 10-Multiturn Blue picture

10K Ohm Rotary Potentiometer Variable Dial Resistor Precision 10-Multiturn Blue

$7.95



10 Units 10K B10K OHM Linear Taper Rotary Dual Potentiometer POT White Knob picture

10 Units 10K B10K OHM Linear Taper Rotary Dual Potentiometer POT White Knob

$9.08







Copyright © 2004-2016 BlackBerryForums.com.
The names RIM © and BlackBerry © are registered Trademarks of BlackBerry Inc.