thread73-1342849
I'm trying to prevent a user from editing a document that has a field set to "Completed" using Queryopen event. I'm new at this and need help with the coding. I found this code, but it is not working, I don't know how to set the Source.Document.Status?
Code:
Sub Queryopen(Source As
Notesuidocument, Mode As Integer,
Isnewdoc As
Variant, Continue As Variant)
If mode and not IsNewDoc Then
If Source.Document.Status(0) = "Closed"
Then
Messagebox "You may not edit a
closed document."
continue = False
End If
End If
End Sub
Is there a way to do prevent document editing with a View instead?
My goal is prevent users modifying a document after it has been set as completed. Maybe there is a way to set the acl for a view to read only?
I'm trying to prevent a user from editing a document that has a field set to "Completed" using Queryopen event. I'm new at this and need help with the coding. I found this code, but it is not working, I don't know how to set the Source.Document.Status?
Code:
Sub Queryopen(Source As
Notesuidocument, Mode As Integer,
Isnewdoc As
Variant, Continue As Variant)
If mode and not IsNewDoc Then
If Source.Document.Status(0) = "Closed"
Then
Messagebox "You may not edit a
closed document."
continue = False
End If
End If
End Sub
Is there a way to do prevent document editing with a View instead?
My goal is prevent users modifying a document after it has been set as completed. Maybe there is a way to set the acl for a view to read only?