Thank you for reporting this bug. We will make it our priority to review this report.
Grid store sync calls wrong URL
Grid store sync calls wrong URL
Hi guys,
here's my store:
Code:
var store = Ext.create('Ext.data.Store', {
autoLoad: true,
autoSync: false,
model: 'AdminConsole.model.Property',
proxy: {
type: 'rest',
url: 'http://localhost:8111/storefront/rest/platform/property',
useDefaultXhrHeader : false,
reader: {
type: 'json'
}
}
});
and here's how I sync it:Code:
onSaveClick: function() {
var grid = Ext.getCmp('system-properties-grid');
grid.getStore().sync({
success: function(batch, options) {
store.load();
Ext.toast({
html: 'Successfully saved!',
closable: false,
align: 't',
slideInDuration: 400,
minWidth: 400
});
},
failure: function(batch, options) {
var error = Ext.decode(responseObject.responseText);
Ext.Msg.alert('Error', 'Error: ' + error);
}
});
}
but when I try to sync it - a PUT request it made to this URL:Code:
http://localhost:8111/storefront/rest/platform/property/AdminConsole.model.Property-1?_dc=1403338276238 405 (Request method 'PUT' not supported)
and with extjs4 it was making a PUT request toCode:
/rest/platform/property
samedi 21 juin 2014
Grid store sync calls wrong URL
Inscription à :
Publier les commentaires (Atom)
Aucun commentaire:
Enregistrer un commentaire