ExtJS 4.1 - Returning Associated Data in Model.Save() Response

前端 未结 4 1164
广开言路
广开言路 2021-01-04 08:09

I am curious as to why the record contained in the result set of a Model.save() response does not properly return updated associated data, despite the updated d

4条回答
  •  清歌不尽
    2021-01-04 08:48

    Completely agree with you. Really odd behavior. It should update the association store on the record. This is how i got around this issue (basically just run the response through the reader!):

     success: function(record, operation) {
         var newRecord= me.getMyModel().getProxy().reader.read(operation.response).records[0];
     }
    

提交回复
热议问题