Changing pickerWheel values based on another pickerWheel

Is it possible to change one pickerWheels values based on the selection value of another pickerWheel ?

So I have 2 pickerWheels and need to show certain values based on the value that is selected in the first.

If this is not possible, anyone got any other solutions or ideas ?

Thanks,

Dave

Hi Dave,

This isn’t possible at this point, but I’m curious, how do you envision it working? Would the second wheel dynamically add/subtract values as you choose certain values? If so, what if the new value is supposed to appear between currently visible values? Would those be split and “pushed apart” to make room for the new value?

Or does the second wheel change based on some kind of “submit” functionality of the first wheel? The latter option would be possible by just re-generating the second wheel based on the input of the first… but I feel this isn’t what you’re talking about.

Brent

Hi,

The way I wanted it to work would be say you had a list of countries in the first and a list of corresponding cities in the second. As you pick a country, the second display on cities in that country.

I decided to use the pickerWheel as I couldn’t think of any other way. The only other way I could think of would be checkboxes on a scroll view, separate them via groups and then set whatever group is needed via isVisible. But still use a pickerWheel for first choice.

Only downside is you still have to click something to pickup the value of the pickerWheel.

What I might do is a pickerWheel, then you click next and thn can bring on the appropriate group full of checkboxes.

EDIT: Why doesn’t the forums software recognise carriage returns on the iPad ?
EDIT 2: It does if you edit the post!

Dave

Hi Dave,

This isn’t possible at this point, but I’m curious, how do you envision it working? Would the second wheel dynamically add/subtract values as you choose certain values? If so, what if the new value is supposed to appear between currently visible values? Would those be split and “pushed apart” to make room for the new value?

Or does the second wheel change based on some kind of “submit” functionality of the first wheel? The latter option would be possible by just re-generating the second wheel based on the input of the first… but I feel this isn’t what you’re talking about.

Brent

Hi,

The way I wanted it to work would be say you had a list of countries in the first and a list of corresponding cities in the second. As you pick a country, the second display on cities in that country.

I decided to use the pickerWheel as I couldn’t think of any other way. The only other way I could think of would be checkboxes on a scroll view, separate them via groups and then set whatever group is needed via isVisible. But still use a pickerWheel for first choice.

Only downside is you still have to click something to pickup the value of the pickerWheel.

What I might do is a pickerWheel, then you click next and thn can bring on the appropriate group full of checkboxes.

EDIT: Why doesn’t the forums software recognise carriage returns on the iPad ?
EDIT 2: It does if you edit the post!

Dave

I was able to do this type of feature by deleting the second pickerWheel widget and reinserting it with the new values once the first picker was selected.  You will need a button or other device to tell your code that the user has finished with the first picker.  A little clunky but it did work.

I was able to do this type of feature by deleting the second pickerWheel widget and reinserting it with the new values once the first picker was selected.  You will need a button or other device to tell your code that the user has finished with the first picker.  A little clunky but it did work.