grebe
5 Apr 2012, 5:03 AM
Using the example at http://docs.sencha.com/ext-js/4-0/#!/guide/application_architecture I cannot get any data posted back to my application. I have worked the example through, and successfully populated the grid from my application (a dot net IHttpHandler). However, when saving changes a request is sent to my application, but there is no posted data. My datastore is as follows:-
Ext.define('AM.store.Users', {
extend: 'Ext.data.Store',
model : 'AM.model.Users',
autoLoad: true,
proxy: {
type: 'ajax',
api: {
read: 'users.json',
update: 'updateUsers.json'
},
reader: {
type: 'json',
root: 'users',
successProperty: 'success'
}
}
});
What am I missing?
Update:
I now see the data appears in the Request.InputStream. Is there a way to send this as posted data?
Ext.define('AM.store.Users', {
extend: 'Ext.data.Store',
model : 'AM.model.Users',
autoLoad: true,
proxy: {
type: 'ajax',
api: {
read: 'users.json',
update: 'updateUsers.json'
},
reader: {
type: 'json',
root: 'users',
successProperty: 'success'
}
}
});
What am I missing?
Update:
I now see the data appears in the Request.InputStream. Is there a way to send this as posted data?