IBM®
Skip to main content
    Country/region select      Terms of use
 
 
   
     Home      Products      Services & solutions      Support & downloads      My account     
 
developerWorks
AIX and UNIX
Information Mgmt
Lotus
New to Lotus
Products
How to buy
Downloads
Live demos
Technical library
Training
Support
Forums & community
Events
Rational
Tivoli
WebSphere
Java™ technology
Linux
Open source
SOA and Web services
Web development
XML
My developerWorks
About dW
Submit content
Feedback



developerWorks  >  Lotus  >  Technical Library
developerWorks


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
Platform: All
Updated: 11/01/2001

Related link:
More Tips from Notes.net

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
    Msgbox "This is a [Replication or Save Conflict] document. Changes should only be made to the main document!"
    Continue = False ' do not save
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


Would you like to submit a tip?
    About IBM Privacy Contact