View Full Version : get the store remove data response result

22 Oct 2010, 2:09 AM
I have a JsonStore .The store defined is

Eway.fortress.SlaveStore = Ext.extend(Eway.BaseStore,{
restful : true,
proxy : new Ext.data.HttpProxy({
method : 'GET',
url : Eway.REST_URL+"/fortress/slave"
writer : new Ext.data.JsonWriter({
encode : false,
writeAllFields : true
reader : new Ext.data.JsonReader({
idProperty : 'id',
totalProperty : 'total',
root : 'data',
fields : ['id','code','password',
when I call the store's remove method,that is
It can auto send the delete request to the server ,and the server can response the result.As it is auto send,I can not get the response the result.Sometimes ,if the delete request is failure,then I have no changes to tell user the delete request is failure.so how can i do to get the delete response result.

22 Oct 2010, 2:19 AM
Well, I don't really understand that. But I think that what you need is a listener on the Store for the exception event.

25 Oct 2010, 5:38 PM
thank you very much.I think my is poor.Haha.I think a exception event can resolve me.Thank you very much.