1 May 2012 9:11 PM #1
getting data from picker
I have an event on the "done" button that is supposed to get the values from the picker...all I get are nulls.
alert("Return: " + JSON.stringify(this.getValues()));
3 May 2012 3:03 PM #2
I'm not sure that this is your problem, but perhaps try using the 'change' event of the picker, rather than an event on the Done button? It's likely that the Done button's event handler runs before the values are committed.
Also see the "Picker" tutorial at http://docs.sencha.com/architect/2-0...lays-section-3 which does something similar.Jason Johnston
Sencha Architect Development Team
5 May 2012 3:18 PM #3
thanks for this...found the problem.
when I instantiate the picker I put it in an controller variable (this.picker).
Then I just use this.picker.getValues() on the done button-tap event...works great.