developerWorks  >  Lotus  >  Forums & community  >  Notes/Domino 6 and 7 Forum

Notes/Domino 6 and 7 Forum


Handling - Removing/deleting replication conflicts
fatsoua fatsoua 07/10/2017 08:55 AM
Domino Designer All Releases All Platforms

The db I'm working on has an alert feature in it (i.e. registered users get an email (with the document link) whenever there is an update).
All of a sudden this feature is sending the alert twice to the users as whenever the doc is saved its creating replication or saved conflict. I have written the following code on my "save and send alert" action button so that before it sends the alert, to find the replication conflicts, to remove/delete them and then send the alert ONCE! However it doesnt work. what am i doing wrong? I have also changed the form property to "do not create conflicts". any help will be much appreciated.

Sub Click(Source As Button)
Dim session As New NotesSession
Dim db As NotesDatabase
Dim workspace As New NotesUIWorkspace
Dim uidoc As NotesUIDocument

Set uidoc = workspace.CurrentDocument
Set db = session.currentDatabase
Set conflicts = db.Search("SELECT@IsAvailable($Conflict)",Nothing,0)

Call uidoc.FieldSetText("SentAlert", "0")

conflicts.removeAll True

Call uidoc.Close
End Sub

Go back