Link to home
Start Free TrialLog in
Avatar of unknown45
unknown45

asked on

Lotus Document Locking Not Working

I had document locking working, I then made it so when my form is opened it auto launches a excel spreadsheet OLE object, but now document locking is no longer working. Any idea's?
Avatar of qwaletee
qwaletee

Wow, that's pretty generic.  What do youmean by "not working?"  You can put the doc in edit mode (not the OLEdoc, but teh Notes doc -- you can actually edit fields, while another user is also editing fields?)
Avatar of unknown45

ASKER

Sorry it was pretty generic... Multiple users can edit the same OLE and the same notes doc at the same time. I even manually right clicked on the document and locked it, but another user was still able to get into it.
Nope, still not enough information :-)

Have you set it up correctly ?  Can you see the locks ?  Have you got an Adminstration Server in the ACL ?
Yes I have an administration server in the ACL. And when i open the documents it does not say locked and unlocked the status bar, but if i manually lock it, it does show locked and unlocked in the status bar.
What you can do is set up a querymodechange routine in lotusscript which checks that the user has the correct rights to place the document in edit mode.
So, what you are saying is that lockig does work (user can lock manually), but "automatic" locking isn't working.  How did you set up automatic locking?
When i manually lock it, in the status bar it will say document is locked, however another person can still open it. It says its locked... but it is not.

As far as automatic locking I did nothing but enable document locking in the database.
OK, that clarifies things.  Notes is claiming the document is locked, when it really isn't.

And if you use a form in the database that does not have any objects on it, no problem, even now?
I created a brand new form, nothing on it but 1 line of text. Saved the document, and locking still does not work. Even manual locking does not work.
SOLUTION
Avatar of qwaletee
qwaletee

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
I disabled locking , compacted, re-enabled and re-compacted and it still does not work.
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
*sigh* my mind is still on vacation i guess... Thanks Bozzie.... Ok document locking is working on my blank form. Now on the form that auto launches the attachment it does not work until the user closes the attachment. 2 People can open up the document, it auto launches the attachment, they make changes to the attachment and then who ever closes it first gets the lock and the other person can not save. Basically i need it to tell them its locked before the attachment is opened.
Ok i just decided not to auto launch the OLE object, its ok to have them double click to launch it.
Ah those simple problems can be the hardest to solve :-)
Well, then, you found a bug.  If I had to guess, there is a sequence of events when a doc is opened into edit mode, and the OLE launching code ocurs in that sequence before the lock request.  Further, hard to tell from that whether the first locker is failing to SET the lock until too late or whether the second locker is failling to CHECK the lock until too late.  Or both, actually.