Yet Another IT Blog
Posts tagged Development
Create a shared action to create a new document
06 years ago
by Mirco Lueneburg
in Lotus Domino
At first you have to create a new Shared Action and name it e.g. New Document.
Change Formula to LotusScript and paste following code into your action where <mask_name> should be replaced by your mask.
Sub Click(Source As Button) Dim workspace As New NotesUIWorkspace Call workspace.ComposeDocument( '', '', '<mask_name>' ) End Sub
Block a XPage from users not having a role
06 years ago
by Mirco Lueneburg
in XPages
X-Page -> All Properties -> rendered
var v:Array = database.queryAccessRoles(session.getEffectiveUserName()); @IsMember(“[role]”, v)