Solved

hiding actions

Posted on 2001-08-06
6
235 Views
Last Modified: 2013-12-18
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?
0
Comment
Question by:hgajas
6 Comments
 

Expert Comment

by:mkraan
ID: 6356800
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.

Gr,
MKraan
0
 

Expert Comment

by:mkraan
ID: 6356812
Oops, in my above comment, replace "User A" with "User B" in the second part of the formula.
0
 

Expert Comment

by:puneetfred
ID: 6357187
u can also write this as:

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

This is shorter. So, u could use this.
0
What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

 
LVL 4

Accepted Solution

by:
sloeber earned 75 total points
ID: 6358588
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
@IsNotMember("[Visisble]";@UserRoles)

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.

Greets,
Sloeber
0
 

Author Comment

by:hgajas
ID: 6359318
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.
hgajas
0
 
LVL 4

Expert Comment

by:sloeber
ID: 6359427
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 ;-)


Greets,
Sloeber
CU NEXT TIME ;-)
0

Featured Post

What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

Join & Write a Comment

This is an old article, please see an updated version of this article, located here: http://www.experts-exchange.com/articles/23619/Notes-8-5x-Windows-7-Notes-info-and-tips.html
  In today’s Arena we can’t imagine our lives without Internet as we are highly used to of it. If we consider our life style just for only 2 min we found that face to face communication is swapped by e-communication.  Every Where from Works place to…
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

707 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now