Replication - prevent editing to a replicated document

Is there a way of identifying a document on a local database if it has been replicated to the server database? so as to prevent further editing to it on the local database.

Our offline users can create documents and edit them until they have replicated them to the server, then no further editing is allowed to those documents.

I can restrict them using the API to get the last successful repliation time and compare that to when the document was created etc… this works fine except when the user stops replication half way => replication fails but some docs were sent to the server!

Where can I see which documents were replicated even if replication fails?

Thanks

Subject: Replication - prevent editing to a replicated document

I don’t think there’s a property in the document that identifies that. However, you could perform a lookup on the server database(when connected) from the local database that uses the document’s UNID. If it finds it, it was sent to the server, if it doesn’t it exists only locally and will be sent when the user re-connects.

All this is moot at this point since the document will replicate to the server if it’s set to replicate automatically when connected to the remote server.

This would only useful if the replication was always initiated by the user.