I'm adding records to a store and marking them dirty using the "markDirty: method on the data record. Once I have saved the data, I want to mark the records as not dirty anymore. I checked the documentation and dirty is a readonly field. I don't see anyway of setting this. Any ideas?
+2
A:
Store.commitChanges()
will commit all changes and mark each record as not dirty. You can also call commit()
individually on records (or reject()
to discard changes).
bmoeskau
2010-06-28 23:19:16
Exactly what I needed. Thanks again for your help.
extnoob
2010-06-29 15:39:04