Improve company productivity with a Business Account.Sign Up

  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 250
  • Last Modified:

hiding actions

I have a Lotus Notes 4.6 database. I want to hide an action from everyone except 2 people. It works for one, but when I add the second it doesn't. I was using the Hide action if formula is true property.

@Name([CN];@UserName) != "A User"

Any ideas?

Also, can I hide it from everyone except editors in the access control list? If so, how?
1 Solution
Hello hgajas,
You can use the @IsMember formula.

eg you're hide when formalu would be as follows:

@IsMember("User A"; @Name([CN]; @UserName)) | @IsMember("User A"; @Name([CN]; @UserName))

I'm not sure wheter the order of the pars is right, if not check the help file.

Oops, in my above comment, replace "User A" with "User B" in the second part of the formula.
u can also write this as:

@IsNotMember(@name([CN];@username); "userA":"user B").

This is shorter. So, u could use this.
Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Hey hgajas,

The best way to do this all is using roles.
If you use roles then the action is person independence but role dependence.
It's easier to maintain.
Because you just must go the ACL and assign an other person to that role.
The way you have written the name is also true.

So, how must you do that.
Go to the ACL
File ==> Database ==> AccessControlList
In the left frame under Basics choose Roles
Click on add in the body screen
Write a name for your role like "Visible"
Click ok
Go in the left frame back to Basic
Now you see you role and the right side below, between [ ].
So, click on all the editor names and assign them this role.
You click one time on the editor name and then one time on the role name, so there is a "v" visible near the role.

Go now to your action and write in the hide when properties

That's all
Now he hide the action for all the users who don't have the user role "[Visiblie]" assigned to them.

It's easy to maintain, and you don't have any hard coded formulas in your database.
Allways try to avoid that.

hgajasAuthor Commented:
Thanks everyone who responded soo quickly. All answers worked. Thanks especially to sloeber, you didn't just answer the question you gave me lesson. Thanks.
I hope that you understand the principle.
Try never to use hard coded formulas.

Thanks for the points
It's always a pleasure to help someone ;-)

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Upgrade your Question Security!

Your question, your audience. Choose who sees your identity—and your question—with question security.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now