locking document made easier.Replication and save conflict can be avoided.
| Your Email Address | rakesh_120@yahoo.com |
| Your Name | Rakesh |
| Company Name | Tata 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 System | Windows 9.x, Windows NT, Windows 2000 |
| Technologies Implimented | |
| Installation Notes | |
| Category | R4.x, R5.x |
 |  |
Add Response || Add a Resource
Responses to "locking document made easier.Replication and save conflict can be avoided.":
|
|