LDD Today


Tips from Notes.net
Preventing users from editing [Replication or Save Conflict] documents

Tip submitted by
Rune Carlsen

Level: Intermediate
Works with: Designer 5.0
Updated: 01-Nov-2001


When two or more users edit the same document simultaneously, a [Replication or Save Conflict] document is created as a response to the main document. As a developer or administrator, have you ever wished you could prevent users from editing these conflict documents? With this tip, now you can.

All you need to do is add some LotusScript to either (or both) the QueryOpen or QuerySave event of the form used by your application's documents.

Here is the code:

If Source.Document.HasItem("$Conflict") then End If

If you add the code to the QueryOpen event, then users won't be able to open the conflict document from the view. If you add the code the the QuerySave event, then users will be able to make edits to the conflict document, but they will be prevented from saving the change.


SUBMIT YOUR TIPS!
We encourage you to send us your tips (You can also click the "Would you like to submit a tip?" graphic below.) Your tips can be anything you've discovered about Notes, Domino, Designer, or the Domino Administrator that you think is interesting, useful, or handy. For ideas, take a look at our tip archives. If we publish your tip, we'll send you your very own Notes.net mug (shown below).
Notes.net mug