Manage Learn to apply best practices and optimize your operations.

Prevent Deleteing Document

There could be documents which never should get deleted.(Like Application
profile)
Use the QueryDocumentDelete event in NotesUIDatabase
Sub Querydocumentdelete(Source As Notesuidatabase, Continue As Variant)
Dim ses As New notessession
Dim doc As notesdocument

For i = 1 To source.documents.count
Set doc = source.documents.Getnthdocument(i)

If (doc.Form(0) = "fAppPro" )Then
'AND (Instr(ses.username,"Silvester") Just to have back to delete the
doc anyway..Using the roles is better idea....
Msgbox "You are not allowed to delete the profile
document",16,gWINTITLE
continue = False
End If
Next


End Sub

Dig Deeper on Domino Resources

Start the conversation

Send me notifications when other members comment.

Please create a username to comment.

-ADS BY GOOGLE

SearchWindowsServer

Search400

  • iSeries tutorials

    Search400.com's tutorials provide in-depth information on the iSeries. Our iSeries tutorials address areas you need to know about...

  • V6R1 upgrade planning checklist

    When upgrading to V6R1, make sure your software will be supported, your programs will function and the correct PTFs have been ...

  • Connecting multiple iSeries systems through DDM

    Working with databases over multiple iSeries systems can be simple when remotely connecting logical partitions with distributed ...

SearchDataCenter

SearchContentManagement

Close