1
87VV2L
  Resources Home :

locking document made easier.Replication and save conflict can be avoided.


Your Email Addressrakesh_120@yahoo.com
Your NameRakesh
Company NameTata Consulancy Services
Subject locking document made easier.Replication and save conflict can be avoided.
Details
To lock a document craete a hidden field say "LOCK" in this case . write the following code in the postmodechange event

Dim ss As New Notessession
Dim user As String
user = ss.CommonUserName
Call Source.FieldSetText("LOCK",user)
Call Source.Save

In the QueryModeChange add following code

'in case that another user is using the document the following code will work to avoid another user to edit the document.

user=Source.FieldGetText("LOCK")
If(user <>"") Then
ans = Messagebox("This Document is presently in use by " & user & ". Please close it and try again later",0+16+0+0,"Error")
Continue=False
Exit Sub
End if


Replication and save conflict can be avoided if the single user is able to make the changes one at a time.Adding such code in every databases adds security .
Attachments -none-
Operating SystemWindows 9.x, Windows NT, Windows 2000
Technologies Implimented
Installation Notes
CategoryR4.x, R5.x
Add Response   ||  Add a Resource


Responses to "locking document made easier.Replication and save conflict can be avoided.":

© 2003 notes411.com. All rights reserved. Disclaimer. site designed & developed by appsworks.com
Lotus Notes is a registered trademark of IBM. This site is not affiliated with IBM or Lotus.
NotesFAQ and DominoFAQ. Lotus Notes Links and Lotus Domino Links to Lotus Notes resources / Lotus Domino resources. Lotus Domino websites. Lotus Notes websites. Lotus Notes business partners. Lotus Domino business partners. IBM business partners. IBM Lotus Software. Websites build with Lotus Domino. Tools for Lotus Notes. Tools for Lotus Domino. Lotus Notes Tips and Tricks. Lotus Domino Tips and Tricks. Lotus Notes support. Lotus Domino support. Books about Lotus Notes. Books about Lotus Domino. Lotus Domino Administrators. Lotus Notes Developers. Lotus Domino Developers. Lotus Notes templates. Lotus Domino templates. .NSF .NTF Lotus Domino security. Lotus Domino Hosting. Lotus QuickPlace, Lotus Sametime, Lotus iNotes, Domino and Websphere, Lotus LearningSpace. Lotus Notes job postings, Lotus Domino job postings. And many more Lotus Domino resources and Lotus Notes resources. NotesLinks and DominoLinks bring all Lotus Notes Links and Lotus Domino Links. Search on this website for many. Please post your links and resources on Notes411 (Lotus Notes Resources)and Domino Links (Lotus Domino Resources) see you again on Notes411.com and DominoFaq.com
 News

 Google Box
 Sponsor
ClearCase, Subversion, WebSphere Consulting
 Best in the Industry
Lotus Notes & Domino FAQ