< Back

Document Subject: xpages has role
Hint Short Cut: Add this to your code & documentation to help you find this page.
http://#xpage-role or http://A555F9/nn.nsf/ByAlias/xpage-role

You cannot use @IsMember role  @UserRoles in xpages you have to use some other code.




The code which i nicked from here:http://dominoextnd.blogspot.com/2009/02/xpages-hide-whens-formulas-and-user.htm

is:

context.getUser().getRoles().contains('[RoleName]')

you can use this in a visible (hide when) formula.

 

I have a convert to xpages routine please try it out http://notesninjas.com/Utils.nsf/ConvertAtFunction