BlackBerry Forums Support Community
              

Closed Thread
 
LinkBack Thread Tools
Old 12-02-2010, 03:06 PM   #1 (permalink)
Maq
New Member
 
Maq's Avatar
 
Join Date: May 2010
Model: none
PIN: N/A
Carrier: AT&T
Posts: 2
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default ObjectChoiceField not opening

Please Login to Remove!

I'm trying to create an ObjectChoiceField by passing in a String Array. It creates the drop down box and shows the first value but it doesn't drop down when you click on it. No errors. Testing on 9500 OS 5.0.

Code:
           ocf = new ObjectChoiceField("", getProfessions("specialty_nurse.xml"));
           profLabel = new LabelField("Please Choose a Profession");
           add(new LabelField(""));
           add(profLabel);
           add(new SeparatorField());
           ChoiceListener myChoiceListener = new ChoiceListener();
           ocf.setChangeListener(myChoiceListener);
           add(ocf);
The getProfessions() method definitely returns a String array with 34 elements. I'm adding this to an IdDialogBox. Is there some sort of method like navigationClick() for textFields that I need to implement in my listener? Thanks.

Last edited by Maq : 12-02-2010 at 03:09 PM.
Offline  
Old 12-02-2010, 03:49 PM   #2 (permalink)
Maq
New Member
 
Maq's Avatar
 
Join Date: May 2010
Model: none
PIN: N/A
Carrier: AT&T
Posts: 2
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default Re: ObjectChoiceField not opening

Solved. The navigationClick() method was being overridden so I had to check for a click on my ObjectChoiceField. I will post the code if someone needs it. Thanks!
Offline  
Old 05-30-2011, 04:04 PM   #3 (permalink)
New Member
 
Join Date: May 2011
Model: none
PIN: N/A
Carrier: none
Posts: 1
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default Re: ObjectChoiceField not opening

Quote:
Originally Posted by Maq View Post
Solved. The navigationClick() method was being overridden so I had to check for a click on my ObjectChoiceField. I will post the code if someone needs it. Thanks!
Please do. I'm having the same issue with an ObjectChoiceField inside a Modal dialog.
Offline  
Closed Thread


Thread Tools

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads for: ObjectChoiceField not opening
Thread Thread Starter Forum Replies Last Post
Need help for resize the ButtonField and the ObjectChoiceField bitpanda Developer Forum 0 08-20-2010 09:48 PM
java.io.IOException: Bad DNS address - in opening a HttpConnection Shreyas Developer Forum 0 05-17-2010 06:40 AM
Opening HTTP Connection mamoos1 Developer Forum 8 11-04-2008 06:39 PM
ObjectChoiceField alignment problem in JDE 4.5.0 suspiration Developer Forum 1 07-27-2008 09:08 AM
Newbie First Attempt - Datacapture & Http post/push issues myworldntl Developer Forum 1 07-23-2008 01:03 PM

MSA GALAXY ALTAIR 5 DIFFUSION AUTOMATIC TEST SYSTEM
$1200.0
MSA GALAXY ALTAIR 5 DIFFUSION AUTOMATIC TEST SYSTEM picturemsa altair pro O2
$130.0
msa altair pro O2 pictureMSA Altair 4x Multi Gas Confined Detector O2 CO H2S LEL Warranty Calibrated
$330.0
MSA Altair 4x Multi Gas Confined Detector O2 CO H2S LEL Warranty Calibrated pictureMSA Altair 5 Color Multigas Detector Calibrated with All New Sensors and Battery
$549.0
MSA Altair 5 Color Multigas Detector Calibrated with All New Sensors and Battery picture3 X MSA Altair 4 X Multi gas Monitor /gas Detector /
$850.0
3 X MSA Altair 4 X Multi gas Monitor /gas Detector / picture






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