jeudi 2 octobre 2014

No server response data returned for model.save() - Causes read error

Hi

I use model.save() for the 'create' and 'update' actions. When I create a new model instance and call model.save(), a service call is made to the server in which the server responds with the model in JSON (since it now has an ID) which is reconciled in the grid. This works fine.


However, for the 'update' action the server does not send back the model json in the response since my code doesn't need it. However, this is causing issues since Ext JS is expecting returned data in the response and tries to read the record, when there is none (then throwing a read error).


Is there anyway around this other than getting the server to always respond with the model json for every call made?


Thanks






No server response data returned for model.save() - Causes read error

Aucun commentaire:

Enregistrer un commentaire