PDA

View Full Version : Get Response text from sync() call back function



d4rksid3rs
6 Sep 2015, 11:43 PM
Hi everyone,
I am new Extjs user. I have a problem.
I build an application by MVC Extjs. When i do sync() Store, i want to get response text from it. But i get nothing.
And server side give for me

{"success":false,"msg":"AAAAAAAAA"}
Here my code in my controller.

this.getCustomers2Store().sync({
success: function (batch, options) {
this.getCustomers2Store().load();
},
failure: function (response) {
console.log(response.responseText);
Ext.Msg.alert('Error', 'Error!!!');
this.getCustomers2Store().load();
},
scope: this
});


Anyone can help me? I tks alot..

tristan.lee
8 Sep 2015, 12:41 PM
You could read directly from the reader's jsonData or rawData property. This way does access private methods/properties so in future versions the functionality may not exist.

thi