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

Native Development

Reply
Developer
Posts: 89
Registered: ‎10-18-2012
My Device: BB Z10
My Carrier: -
Accepted Solution

How to update a PickerProvider dynamically

Hi all,

I have a Picker with two columns managed by a PickerProvider.

I want that when a new value is selected in the first column, values of the second column are updated based on first column selection.

 

Is it possible?

Thanks!

Developer
Posts: 6,152
Registered: ‎07-05-2012
My Device: Playbook, Dev Alpha C, Z10 LE, Z30
My Carrier: Orange

Re: How to update a PickerProvider dynamically

I may be misunderstanding your problem, but can't you just use the select function...

 

http://developer.blackberry.com/native/reference/cascades/bb__cascades__picker.html#function-select-...


If you've been helped click on Like Button, if you've been saved buy the app. Smiley Happy

Developer of stokLocker, Sympatico and Super Sentences.
Developer
Posts: 89
Registered: ‎10-18-2012
My Device: BB Z10
My Carrier: -

Re: How to update a PickerProvider dynamically

What I want is:

 

Column 1: options A,B,C,D,E...

If in column 1 'A' is selected, then in column 2 options are: A1, A2, A3, A4...

If in column 1 'B' is selected, then in column 2 options are: B1, B2, B3, B4...

...

 

Finally I have do it with 2 pickers in an horizontal stack layout. When value changes in the first picker I set data for the second picker. 

 

Regards.