Link to home
Start Free TrialLog in
Avatar of fayeb
fayeb

asked on

Outlines - Hide When

I have an outline for my navigation.  I have placed a hide when to display the outline entry depending on the value of a field.

The hide when formula is:

!(EffectiveRoles="[Admin]" | EffectiveRoles="[SuperUser]" | EffectiveRoles="[GTO]")

The problem is that this isn't working if I place the same hide when on a field it works but it doesn't work on the outline entry.

Does anyone have any ideas how I can solve this?

Thanks
Avatar of snocross
snocross

Hmmm.... seems like it should work.   Maybe try @contains instead like this?

!(@Contains(EffectiveRoles;"Admin") | @Contains(EffectiveRoles;"SuperUser") | @Contains(EffectiveRoles;"GTO"))

Avatar of fayeb

ASKER

nope still no luck!
And

Is Effective Roles defined as,

EffectiveRoles := @UserRoles ???

-Arun.
Good point.  I assumed he could see the values on his screen.  Hi Arun.
May be it could refer a field with @UserRoles computed formula... Hi Sno...

:-)
Avatar of fayeb

ASKER

no I can't use @UserRoles
Okay if these are not connected with Roles in ACL then why dont you simply use the same formula without "[" "]"  Why do you need the square braces ... ?

I think i am getting confused here.

me 2
Avatar of fayeb

ASKER

A answered this question myself:

I ended up having to have  field for each role which has the formula

@If(@IsMember("[value]";EffectiveRoles);"0";"1")

I then did a hide when statement to look at this field.

I am posting to have this question closed/deleted.
ASKER CERTIFIED SOLUTION
Avatar of SpideyMod
SpideyMod

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial