Solved

Appending Roles

Posted on 2004-09-30
13
541 Views
Last Modified: 2013-12-18
@IsMember("[Sales]"; @UserRoles)

How would I add another role to this?

[PMMEMEA]

would it be something like this

@IsMember("[Sales]":"[EMEAPMM]"; @UserRoles)
0
Comment
Question by:Jaziar
  • 4
  • 4
  • 3
  • +2
13 Comments
 
LVL 24

Expert Comment

by:HemanthaKumar
ID: 12192831
Right, (@IsMember("[Sales]":"[EMEAPMM]"; @UserRoles)) means that user has both the roles enabled...

What is that you want to check or do ?

~Hemanth
0
 

Author Comment

by:Jaziar
ID: 12192859
I want the user can be in one or the other not both
0
 
LVL 14

Expert Comment

by:p_partha
ID: 12193183
That's get tricky as there might be a logical flaw.. i would try this:

!@IsMember(@UserRoles; "[Sales]") &
!@IsMember(@UserRoles; "[EMEAPMM]")
0
 
LVL 13

Expert Comment

by:CRAK
ID: 12193231
I usually check with:

@Userroles *= "[Sales]":"[EMEAPMM]"
0
 
LVL 14

Expert Comment

by:p_partha
ID: 12193250
But crak, he wants to hide it , if the user has both the roles

Partha
0
 
LVL 9

Accepted Solution

by:
HappyFunBall earned 50 total points
ID: 12193311
That's not exactly right partha - the parameters are backwards.

This should work:

(@IsMember("[Sales]"; @UserRoles) | @IsMember("[EMEAPMM]"; @UserRoles)) &
!@IsMember("[Sales]":"[EMEAPMM]"; @UserRoles)

That says, return 1 if Sales Or EMEAPMM roles are selected but not both.
0
Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

 
LVL 13

Expert Comment

by:CRAK
ID: 12193329
Hmm.... I overread that bit.
In that case I guess there's nothing left to add other that to congratulate you!
;-))
0
 
LVL 13

Expert Comment

by:CRAK
ID: 12193365
I don't see the full features of that one yet (I'm getting tired), but HappyFunBall does have a point Partha:
What if the user has neither?
0
 
LVL 14

Expert Comment

by:p_partha
ID: 12193383
Yeah funball is right Crak.. Hide whens are always Head aches...:)

Partha
0
 

Author Comment

by:Jaziar
ID: 12193450
The user may not have either. I also hate hide statements!!!!
0
 
LVL 13

Expert Comment

by:CRAK
ID: 12193451
Then why do you keep trying? There are loads of other challenges!
I once found getting a headacke a pretty good reason to try to stop bumpung my head against things.
Worked well! Saved lots on painkillers too!
0
 
LVL 14

Expert Comment

by:p_partha
ID: 12193464
Jaziar,
If funball's logic also not fits for you, then put down the requirements explaining exactly what do u want

Partha
0
 

Author Comment

by:Jaziar
ID: 12193633
Never thought about not bumping my head Crak - WOW
Funball's logic works for me - You guys have a good weekend and buy yourself a beer with the savings from the painkillers.  Thanks to all of you
0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

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
Lack of Storage capacity is a common problem that exists in every field of life. Here we are taking the case of Lotus Notes Emails, as we all know that we are totally depend on e-communication i.e. Emails. This article is fully dedicated to resolvin…
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…
Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…

746 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

12 Experts available now in Live!

Get 1:1 Help Now