Hello! I've got an error , after calling
PHP Code:
field.setValue(field.getStore().getAt(_idx).get(field.valueField));
i get an undefined error in ext debug all
Code:
findRecordByValue: function(value) { //value = 7560
var result = this.store.byValue.get(value), //result= undefined
ret = false;
if (result) {
ret = result[0] || result;
}
return ret;
},
it looks like this.store.byValue is undefined, and from this point js crashes.
a few facts:
field is combobox, it has defined valueField and displayField, the value is existent in store, i searched in store.data.items, and the value of _idx is 0 in this case; also, the combobox is created dynamically depending on some data that i get after an ajax call, but the store is predefined.
Does anybody have any clue what's going on?