Hello
I'm working a picker on a tableViewRow, works perfect, but when one pickerRow Select Product, also this is repeated in row 4, and so threes. Any idea why this happens?
var tipo = Ti.UI.createPicker({ width:'15%', right:30, top:0 }); caja.add(tipo); /* var columTipo = Ti.UI.createPickerColumn({ }); tipo.add(columTipo); */ //var rowPromo = []; var data = []; var db = Ti.Database.open("elite.db","elite"); var selectPromo = db.execute('select * from PROMOTION_TYPES'); var i = 0; while(selectPromo.isValidRow()) { i++; var rowPromo = Ti.UI.createPickerRow({title:selectPromo.fieldByName('name')}); //tipo[obj.numero].add(rowPromo[i]); data.push(rowPromo); selectPromo.next(); } tipo.add(data); tipo.selectionIndicator = true; tipo.addEventListener('change',function(e) { //e.setBackgroundColor('#ccc'); alert('Promo'+e.selectedValue); })