O'Reilly logo

Domino Designer 6: A Developer’s Handbook by Gustavo Pecly, Grant McCarthy, Pekka Hartikainen, Andre Guirard, Rune Carlsen, Tommi Tulisalo

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

13.9. Programming considerations

Domino provides several @ functions that help you control application behavior based on the user, or on the client type. We discuss the following functions:

  • @UserRoles: returns a list of roles for the current user.

  • @UserName: returns the user name or server name.

  • @ClientType: returns a text string to differentiate Notes and Web clients.

  • @UserNamesList: returns a text list containing the current user name, any group names, and any roles.

This information is also available from LotusScript, but these are mostly used in formula context, especially in hide formulas.

13.9.1. Using @UserRoles

Use @UserRoles in formulas to either:

  • Determine what to do for a particular set of users, without needing to hard code user names ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required