Avoiding Save Conflicts

85 pts.
Tags:
Domino Designer
Domino Server
Lotus Notes
LotusScript
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..

Answer Wiki

Thanks. We'll let you know when a new response is added.

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.

Discuss This Question: 2  Replies

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
  • Ashneet
    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 pointsBadges:
    report
  • LotusNotesScrip
    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 pointsBadges:
    report

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following