PDA

View Full Version : How to set reader dynamically in extjs4.1



vijayakumar84
8 Mar 2013, 6:40 AM
Hi All
I am trying to set reader dynamically and get the value store dynamically and want to load in combo box .I tried below code but its not working .can anybody how to fix the issue


var store = Ext.getStore('secondcombo');
var index = ewVal.indexOf(ewVal);
alert(index);


store.getProxy().setReader({
type: 'json',
rootProperty: 'parent.child.childDetails[index].subchild.subchild1',


});
store.load();
console.log("value is"+store.get('childName'));


Thanks,
Vijay

mitchellsimoens
10 Mar 2013, 8:33 PM
Moved to the Ext JS 4 Q&A forum from the Ext JS 4.2.0 forum.