KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
var store = new Ext.data.JsonStore({ id:'jfields', totalProperty:'totalcount', root:'rows', url: 'data.php', fields:[{ name:'jfields' }, { name:'firstyear' , mapping :'firstyear' , type:'float' }, { name:'secondyear', mapping :'secondyear', type:'float' }, { name:'thirdyear' , mapping :'thirdyear' , type:'float' }, { name:'fourthyear', mapping :'fourthyear', type:'float' }, { name:'fifthyear' , mapping :'fifthyear' , type:'float' } ] } }); What I want is to add data at the end for this store , but I am totally confused , what I did is I add the following code to it but not working. listeners: { load : function(){ BG_store.add([{"jfields":"Monthly","firstyear":22.99,"secondyear":21.88,"thirdyear":21.88,"fourthyear":22.99,"fifthyear":21.88}]); } } But I do not think my concept are cleared ,Please any body show some way how to do it .
Tags (comma-separated)
Save Edits
Cancel