[{"_id":"4ffcfaf0f2c5dcf7569e4e3a","name":"Monkey D Luffy","position":"Captain","ambition":"I will become the pirate king"},{"_id":"4ffcfaf0f2c5dcf7569e4e3b","name":"Roronoa Zoro","position":"Swordman","ambition":"Become the greatest swordman"},{"_id":"4ffcfaf0f2c5dcf7569e4e3c","name":"Sanji","position":"Cook","ambition":"Find all blue"},{"_id":"4ffcfaf0f2c5dcf7569e4e3d","name":"Usopp","position":"Sniper","ambition":"Become the greatest warrior"},{"_id":"4ffcfaf0f2c5dcf7569e4e3e","name":"Nami","position":"Navigator","ambition":"Draw map of the world"}]
so, if I modify the sample code to look like:
var store = Ext.create('Ext.data.ArrayStore', {
fields: [
'_id',
'name',
'position',
'ambition'
],
// data: sampleData
url: 'http://genlinux.foo.com:3000/testing/sample',
});
then add a:
store.load();
should that give the equivalent output? It basically gives an empty grid. Not sure where to start debugging - whether it's in the code, whether the URL get doesn't work, etc.
again, sorry for the probably obvious problems - just trying to get a feeling of whether this seems like a framework to give some programmer newcomers access to our MongoDB store or not.