Is there any way to use formula language to manipulate an user role?
If I want to make a command button to change my own settings as “admin-role” to “user-role” when I have an information meeting with the users.
Pushed once it check if a specific role is active. If yes disable, if no enable.
Subject: @UserRole - enable/disable - set/reset
how about using script agent to manipulate roles? and can call agent by formula!!
Subject: @UserRole - enable/disable - set/reset
You can only manipulate roles via LotusScriptChris
Subject: RE: @UserRole - enable/disable - set/reset
Thanks.
I used the LS code form help but get an error msg:
Database server!!data\qsys.nsf har not been opened yet
The code:
Dim db As New NotesDatabase (“server”, “data\qsys.nsf”)
Dim acl As NotesACL
Dim entry As NotesACLEntry
Set acl = db.ACL
Set entry = acl.GetEntry(“fname lname/xxx”)
Call entry.DisableRole(“test”)
Call acl.Save
Why?
Subject: RE: @UserRole - enable/disable - set/reset
That error usually occus when you do not have access to the database you’re trying to open. Check:
-
there are no typos in the Dim db As New NotesDatabase (“server”, “data\qsys.nsf”) line.
-
you have access to the specified database.
HTH
Julie
Subject: RE: @UserRole - enable/disable - set/reset
There is no typos and the form I test this on is in the same database. Our environement is on an AS400. Does this mean anything for the path to the database?
When I run code with @DbColumn I user almost the same code and it works (“server”:“qsys.nsf”). Just omitting "data"
I have all possible access to this database.
Subject: RE: @UserRole - enable/disable - set/reset
LotusScript and macro language use the exact same path for the database. You must not include the path of your data directory on the server when you open a database with LotusScript.