PermaLink Document locking and soft locking question10/24/2008 09:44 AM
Stump the Chump
A Notes database I wrote for a client a few years ago is experiencing a problem with document locking. The database has a scheduled agent (running hourly) that unlocks documents that have locked for more than two hours. However, if the agent unlocks a document while a user is still editing it, the user gets the Another copy of this document was saved while you were editing it warning when they attempt to save their document.

Another copy of this document was saved while you were editing it.

A way around this would be for the agent to determine if anyone has the document open in edit mode before unlocking it. The Domino server knows who's editing a document on the server at all times, and gives users the soft locking prompt when someone else tries to edit the same document in the Notes UI:

soft locking prompt

So, my question is, is there a way to programmatically determine whether someone is editing a given document on the server? I'm guessing that if this is possible at all, it would have to be some sort of Notes C++ API magic...
Comments :v

1. Martin10/24/2008 10:19:01 AM
Homepage: http://martinhumpolec.cz


Not sure that there is some magic, the name is in a field in that document.




2. Michael Sobczak10/24/2008 10:28:45 AM
Homepage: http://www.punkdbynotes.com


@1:

The $Writers field only tells you who put the document into edit mode, not whether the user is actually still editing the document or not.

For example, say a user is editing a document and their Notes client crashes. The $Writers field will still have the users name in it, even though they are no longer physically editing the document.




3. Patrick Picard10/24/2008 10:47:47 AM


EDIT_NO_SOFT_LOCKS=1 in the user notes.ini will prevent the creation of soft locks




4. Michael Sobczak10/24/2008 10:55:26 AM
Homepage: http://www.punkdbynotes.com


@3:

Interesting. I didn't know about that particular Notes.ini parameter.

Unfortunately, my client wants both the soft locking and document locking. Typical customers, wanting everything!




5. Moncler Hoody Women10/23/2011 10:55:34 PM
Homepage: http://www.celebsmoncler.com/


Moncler <a href="{ Link } ned Frakker M?nd</a> sale of export products from <a href="{ Link } Sweaters Men</a> our store. So if you need, just <a href="{ Link } Down Vests Men</a> for Moncler these we place <a href="{ Link } Men Shoes</a> here! we are able to provide <a href="{ Link } Frauen</a> you with one of the most effective <a href="{ Link } Frauen Stiefel</a> products exceptional and the <a href="{ Link } Women Boots</a> best prices.




Credits
NuTechs Powered by Domino
Search
Calendar
February 2012
Su
Mo
Tu
We
Th
Fr
Sa
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
Monthly Archive
Get Real, Detroit!
Real Detroit Weekly
SWARM
Service
With
A
Rapid
Motion


-- old Rally's Hamburgers credo
Lotus Domino ND6 RSS News Feed RSS Comments Feed Podcast Feed Geo URL netcraft RSS Validator Lotus Geek Chris. A. Brandlehner Open Notes Picture Database OpenNTF CoComment Integrated BlogSphere
By Category
The BlogRoll
About
Contact Me
Contact me, Michael Sobczak, using this e-mail address:

my first initial my last name at Yahoo dot com
Recent Entries
No Recent Blogs
Powered by
Blogsphere