Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Java Development

Reply
Super Contributor
Posts: 425
Registered: ‎01-02-2013
My Device: BOLD 9900
My Carrier: sdvsdvsd
Accepted Solution

object choice field issue

hi, look at the screen shot , i have object choice field and and it 's working fine. now what i want is 
for eg in the object choice field i select Lake option (look at the pic) and i close the screen after selecting the value and next time when i open the screen where my object choice filed is placed the value selected by the is not showing as i select the Lake option

9700.png

Developer
Posts: 19,636
Registered: ‎07-14-2008
My Device: Not Specified

Re: object choice field issue

You need to retain the last selected value, then, once you have populated the Choice Field, set the associated index. 

 

You should have no problems setting the index if you look at the API.

 

I think you have already asked questions about persistence, so I think you have that covered too.

 

So you should be able to do this.

 

Come back with any questions.

Developer
Posts: 172
Registered: ‎01-02-2012
My Device: 8520 curve
My Carrier: compny

Re: object choice field issue

Store the selected field index somewhere in Persistent storage or static variable

 

and set that index whenever you are opening object choice field.

 

try it rock...

Super Contributor
Posts: 425
Registered: ‎01-02-2013
My Device: BOLD 9900
My Carrier: sdvsdvsd

Re: object choice field issue

[ Edited ]