harrypottar
6 Apr 2012, 8:48 AM
I have a model attached to a form, I have a proxy in the model.
In the controller code when the forms submit button is pressed I crab the model attached to the form.
I use model.save passing in a parameter so my back end server knows how to deal with it.
All working very pleased.
However before I post the models data I need to set 5 elements of the model.
Each time I call set it tries to auto sync the data.
I tried adding model.beginEdit() which has helped and although I don't have a model.endEdit() it does post an auto sync after my last set method before I run my save.
Is there any way to turn this off, so that it 'only' updates the data when I call model.save()
Thanks
harry
In the controller code when the forms submit button is pressed I crab the model attached to the form.
I use model.save passing in a parameter so my back end server knows how to deal with it.
All working very pleased.
However before I post the models data I need to set 5 elements of the model.
Each time I call set it tries to auto sync the data.
I tried adding model.beginEdit() which has helped and although I don't have a model.endEdit() it does post an auto sync after my last set method before I run my save.
Is there any way to turn this off, so that it 'only' updates the data when I call model.save()
Thanks
harry