Get the latest save document

Hi guys!

I don’t know how to write the question but here is the scenario:

  1. User A had the document sitting open on her screen; she had not clicked the edit button yet

  2. User B opened the same document, edit the document, save, and closed the document.

  3. Almost an hour and a half later, User A clicked the edit button on the document that she originally had opened. She made some changes on Rich Text Field and then she save the document.

  4. The document now only have the changes made by User A - the changes made by User B have been overwrite!

Question 1: Why there are no popup alert come out while User A want to save the document? The document should be save as Conflict docs.

Question 2: To avoid this, I have some idea to return the last save document from the backend, but is it possible? If yes, how can I make this happen?

Thanks in advance guys!

Subject: Answers

  1. That depends on the design/settings on the form. How is it setup to handle replication/save conflicts?

  2. When the first user saves the document, the backend is updated. You could compare the last saved date/time on the backend with that of the UI document in QuerySave and prevent the document from being saved. But the best would probably be to implement document locking.