Kristian Kristensen’s Blog


Sencha Touch: Each picker slot is required to have a name

Posted in PhoneGap,Sencha Touch by Kristian Kristensen on the May 31st, 2011

I was using a select field in Sencha Touch. When running in Chrome it worked fine, and I could open it and select a value. Deploying it via PhoneGap to an Android phone showed that it didn’t work. Instead I got this error in the “adb logcat” output:

D/PhoneGapLog( 2323): file:///android_asset/www/lib/sencha/sencha-touch-debug.js
: Line 25587 : Error: Each picker slot is required to have a name.
E/Web Console( 2323): Error: Each picker slot is required to have a name. at fil
e:///android_asset/www/lib/sencha/sencha-touch-debug.js:25587

Obviously the error message hold the key: namely that the select field needs to have a name. Giving it one, makes the error go away. Still interesting that it works OOB in Chrome. I guess Chrome auto-generates a name for the field and the Android browser doesn’t.

  • If you like my writing you should subscribe to my RSS feed.