?
Solved

Lotus Notes Formula - Hidden Action

Posted on 2011-10-11
8
Medium Priority
?
679 Views
Last Modified: 2013-11-16
Hi again.

The document have the following fields: "txtDocOwners", "txtDocEditors", and they basicaly contain Roles.
Some Actions Buttons on the document should appear to "txtDocOwners", and some appears to both.

So if I may request, I need the formula where it can hide a particular Action Button if the Document IsNewDoc or the current User doesn't have any of the Roles specified in both fields.

Many thanks in advance.
0
Comment
Question by:Faraj1969
  • 4
  • 4
8 Comments
 
LVL 46

Expert Comment

by:Sjef Bosman
ID: 36948229
Could you give this a try:

@IsNewDoc | @IsNotMember(@Trim(@Unique(txdDocEditors:txtDocOwners)); @UserRoles)
0
 

Author Comment

by:Faraj1969
ID: 36948499
Thanks sjef_bosman, I'm just waiting my colleague to create a test ID file so I can test the Roles.

I'll let you know as soon as possible. Cheers.
0
 

Author Comment

by:Faraj1969
ID: 36948839
OK I tried several scenarios and it didn't work. Just to make it a bit more clear. I ommited the @IsNewDoc, I can control that through Button script and exit sub if the back-end doc doesn't exist yet.

For the sake of example, txtDocOwners = "[CRT_Admins];[CRT_BudgetE]", txtDocEditors = "[CRTCIVEditor]", so if user have one of these Roles compined, user can see the Button.

With your formula, user with [RBBCIVEditor] was not able to see the Button. Any idea's?
0
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

 
LVL 46

Accepted Solution

by:
Sjef Bosman earned 2000 total points
ID: 36948943
Oh, the txtDocOwners-field isn't multi-value?

Try this then:

do:= @Explode(txtDocOwners; ";");
de:= @Explode(txtDocEditors; ";");
@IsNewDoc | @IsNotMember(@Trim(@Unique(de:do)); @UserRoles)

Or make sure that thise fields are multi-value fields.
0
 

Author Comment

by:Faraj1969
ID: 36949443
OK cool, I fixed all the fields to multi-value, and its working nice now, just a question though, why the Button disappears in Read Mode, I have to edit the document for the Button to appear ?
0
 
LVL 46

Expert Comment

by:Sjef Bosman
ID: 36950430
That does not depend on this formula, so better look elsewhere. Maybe one of the other Hide conditions is ticked?
0
 

Author Comment

by:Faraj1969
ID: 36950453
I made sure all of them are ticked off, but I'll check it out.. many thanks for your support mate. Cheers.
0
 
LVL 46

Expert Comment

by:Sjef Bosman
ID: 36950579
Welcome! :-)
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

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.

Question has a verified solution.

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

You’ve got a lotus Domino web server, and you have been told that “leverage browser caching” is a must do. This means that we have to tell the browser everywhere in the web to use cache. In other words, we set (and send) an expiration date in the HT…
I thought it will be a good idea to make a post as it will help in case someone else faces these issues. I trust this gives an idea how each entry in Notes.ini can mean a lot for the Domino Server to be functioning properly. This article discusses t…
Please read the paragraph below before following the instructions in the video — there are important caveats in the paragraph that I did not mention in the video. If your PaperPort 12 or PaperPort 14 is failing to start, or crashing, or hanging, …
When cloud platforms entered the scene, users and companies jumped on board to take advantage of the many benefits, like the ability to work and connect with company information from various locations. What many didn't foresee was the increased risk…
Suggested Courses

850 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