Posts tagged Development

Create a shared action to create a new document


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


X-Page -> All Properties -> rendered

var v:Array = database.queryAccessRoles(session.getEffectiveUserName()); @IsMember(“[role]”, v)

Go to Top