Solved

hiding actions

Posted on 2001-08-06
6
238 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
ScreenConnect 6.0 Free Trial

Discover new time-saving features in one game-changing release, ScreenConnect 6.0, based on partner feedback. New features include a redesigned UI, app configurations and chat acknowledgement to improve customer engagement!

 
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

VMware Disaster Recovery and Data Protection

In this expert guide, you’ll learn about the components of a Modern Data Center. You will use cases for the value-added capabilities of Veeam®, including combining backup and replication for VMware disaster recovery and using replication for data center migration.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

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
This article covers general Notes 8.5 troubleshooting information including recreating the Notes\Data folder.
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

825 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