PickerWheel set values of columns

I’m setting up a pickerWheel for the user to choose a date following this very nice code example at http://docs.coronalabs.com/api/library/widget/newPickerWheel.html .

What confuses me, though, is as I cannot seem to find or be able to implement a simple function, where I could programmatically increment/decrement a certain value (for example when the user clicks on a button “next week”, how can I add 7 to the days column?).

I would appreciate any help and tips, as the single solution that comes to my mind, is to delete the existent pickerWheel and set up a new one with new values using the “startIndex” option. There should be a simpler way, I suppose :slight_smile:

Cheers, Pjanc

Currently pickerWheel:setValue() type of function does not exist. I agree this would be super.

Aha, great :S Thanks for the fast information, ksan.

I’ll go with the idea of removing and setting up the pickerWheel again with correct startIndex options.

Hopefully this functionality will be added later on.

Cheers, Pjanc

You’re most welcome. Actually this was discussed recently and I figured out a way to set the values but could not figure out how to change the font color to show picker column as selected. You can see the code for this at : 

http://forums.coronalabs.com/topic/42700-refresh-picker/#entry222669

Currently pickerWheel:setValue() type of function does not exist. I agree this would be super.

Aha, great :S Thanks for the fast information, ksan.

I’ll go with the idea of removing and setting up the pickerWheel again with correct startIndex options.

Hopefully this functionality will be added later on.

Cheers, Pjanc

You’re most welcome. Actually this was discussed recently and I figured out a way to set the values but could not figure out how to change the font color to show picker column as selected. You can see the code for this at : 

http://forums.coronalabs.com/topic/42700-refresh-picker/#entry222669