hardwickj
1 Aug 2012, 2:09 PM
I'm going to guess that this is much harder to do than it should be...
Using ExtJS 4.0.7, right now I have a Model w/ Rest proxy that I auto save upon any change to the models fields. When the response is returned from the server, it is set upon that model. These Models are loaded from a Store, but are intended to be saved individually.
The problem is I have a highly interactive UI in which that model may have already been modified prior to the save completing. Thus the response from the original save is now stale. Since the save sets it's stale data on the model, this can result in some glitchy behavior. Think updated positional data that suddenly gets set to an old position. Not cool.
What I am looking for is a way to tell a given Model.save "don't apply the response data to yourself...you already have everything necessary".
Thoughts? Any help is appreciated!!!!!
Using ExtJS 4.0.7, right now I have a Model w/ Rest proxy that I auto save upon any change to the models fields. When the response is returned from the server, it is set upon that model. These Models are loaded from a Store, but are intended to be saved individually.
The problem is I have a highly interactive UI in which that model may have already been modified prior to the save completing. Thus the response from the original save is now stale. Since the save sets it's stale data on the model, this can result in some glitchy behavior. Think updated positional data that suddenly gets set to an old position. Not cool.
What I am looking for is a way to tell a given Model.save "don't apply the response data to yourself...you already have everything necessary".
Thoughts? Any help is appreciated!!!!!