85 pts.
 Avoiding Save Conflicts
I am designing a database in which documents can be edited by 2 ways. By domino administrator and another through my own program. when doc is opened in edit mode by admin and it is updated by my program, a save conflicted document is created when it is saved by admin. My problem is to detect save conflict before notes warning message "Another copy of this document was saved while you were editing it. Save your changes also as a Save Conflict document" and if there is save conflict then ... do not save the document. I am new to lotus script and am trying to write few codes in QuerySave event, but not getting any success. If anyone can help me with some sample code.. I shall be very thankful to you..

Software/Hardware used:
ASKED: December 30, 2008  10:33 AM
UPDATED: April 13, 2011  6:26 AM

Answer Wiki:
Is the conflict generated between the user and your QuerySave code, that is, all on the same workstation? If so, your issue may be caused by QuerySave writing to the back-end document while the user is modifying the front-end uidoc. You might want to modify your code to write to the front end, if possible, using FieldSetText(). If the conflicts are generated by two different workstations editing the document at the same time, the easiest solution may be to enable document locking in the database, which will prevent two users from editing it at the same time.
Last Wiki Answer Submitted:  December 30, 2008  6:36 pm  by  Ledlincoln   1,620 pts.
All Answer Wiki Contributors:  Ledlincoln   1,620 pts.
To see all answers submitted to the Answer Wiki: View Answer History.


Discuss This Question:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _


 

Hey Ledlincoln thanks for the answer…
I tried locking the document but it didn’t worked in my case. My database is edited by only one user but in different ways 1) Through UI in notes and 2) through my own program (My DLL) using C/C++ APIs.

Is there any other option detecting save conflict before notes warning messages.

 85 pts.

 

Iam also looking for the same….I need to Enhance the resolve conflicts utility in terms of the UI .I need lotus script code for this

 15 pts.