Users have local copies of the db. (many are remote) Here’s what I’ve got:
- The form has querymodechange code to first verify that the datetime last saved value is equal to the value on the server document. If not, editing is denied and replication suggested. (you can’t edit a document older than that on the server)
If last saved datetimes match, then it checks the server to see if anyone else has the doc locked. If so, editing is denied. (you can’t edit a doc that someone else is currently editing) If not, it creates a lock document on the server and allows the doc to be edited.
- If the doc is saved, it is datetime stamped, the matching doc on the server is deleted (by unid) and doc.copytodatabase is used to put the newly updated local doc on the server. Doc lock document is deleted.
From what I understand about conflicts, I should never get any - but I still do.
What am I missing? How can they still occur?