Manage Learn to apply best practices and optimize your operations.

How To Prevent Users The Edit Documents Via The Ctrl+E Keyboard Shortcut Or Double Click

PART I
in the action Edit Document

ENVIRONMENT flag := "1";
@Command([EditDocument]);

you can control user access to action using "hide action if formula true"


PART II

Sub Querymodechange(Source As Notesuidocument, Continue As Variant)
Dim ses As New notessession
flag=ses.getenvironmentvalue("flag")
If flag <> "1" Then
Messagebox "Use Edit Document action", 0, "Action Error"
Call ses.setenvironmentvar("flag","0")
Continue=False
Exit Sub
Else
Call ses.setenvironmentvar("flag","0")
End If
End Sub

Dig Deeper on Domino Resources - Part 4

SearchWindowsServer
Search400
  • Favorite iSeries cheat sheets

    Here you'll find a collection of valuable cheat sheets gathered from across the iSeries/Search400.com community. These cheat ...

SearchDataCenter
SearchContentManagement
Close