PDA

View Full Version : [SOLVED] How can I capture datastore information of combobox?



galdaka
13 Jun 2007, 11:30 AM
var ds = new Ext.data.Store({
proxy: new Ext.data.HttpProxy({url: 'http:XXXX}),
reader: new Ext.data.XmlReader({
record: 'record',
totalRecords: 'totalDocs'
}, ['data1', 'data2', 'data3', 'data4'])
});


var combo = new Ext.form.ComboBox({
store: ds,
displayField: 'data1',
loadingText: 'Cargando...',
triggerAction: 'all',
emptyText:'Selecione un responsable...',
width: 210
});

combo.applyTo('listaResponsables');

I want to save 'data1' value and her "brothers" in different fields. How can I access to a combobox datastore for rescue 'data2', 'data3' and 'data4' values?

EDIT: http://extjs.com/forum/showthread.php?t=7235&highlight=combobox+change