We have moved servers to notes 6, and now, after somebody edits a document, if another one tries to edit it, it says: “the document is already locked by XXX”. I found out by searching at the forum, that is is an undocumented feature called Soft Locking. What i need to know is:
-
is it posible to know which docs are soft-locked before trying to open? I have tried calling doc.save, to test for an error, and it does save without problems, so i can’t test with that. I also tried using the LockHolders function, but it doesn’t works either.
-
If i enable hard-locking, would it override soft-locking?
Subject: Second Post: Soft-Locking, can it be detected and/or override?
I’ve been having the same problem recently too. All of a sudden, average users are getting that message: “the document is already locked…” in various databases… this has only started happening in the past 2 or 3 months.
I’d love to know what’s going on and how to avoid it.
Subject: RE: Second Post: Soft-Locking, can it be detected and/or override?
There are a few options, but our company chose to keep the feature enabled. It has really cut down the number of Replication/Save Conflict errors. Also end users like it because there is less end user confusion verses when the “Do you want to save a conflict” msg box appears.
Here are the options to deal with this “problem”…
-
Change the database forms so they do not auto open in edit mode (that’s usually the reason people are getting the msgs). Therefore, documents are then opening in Read mode so that someone is not soft locking the document just because they needed to read something in it. In most cases this will be a very simple fix of just deselecting the “Automatically enable Edit mode” option (Form Properties - Defaults tab), but in other cases it may involve a little more development work.
-
If the following line of code, EDIT_NO_SOFT_LOCKS=1 from IBM technote #1100606 is added to each users .ini file, the locking msgs will not appear (i.e. the end user experience will not change from pre-Notes 6 versions, but the save/replication msg pop ups continue to appear).
3)I believe there is also an .ini setting at the server level that can also be added, but I couldn’t find the documentation for it. It may be in one of the IBM Redbooks about upgrading to 6.
4)Train the end users on how to use the “View - Document Preview - Show Preview” menu option. The users will at least then be able to view the document if someone else has it in edit mode. As you may have already found out, the soft lock is released as soon as the 1st user closes the document. So if user1 had the document open in edit and then closed it while the 2nd user had it in preview, the 2nd user will be able to enter edit mode (Ctrl-E) without having to close out of preview first.
Hope this helps…
Brad