This forum is closed to new posts and responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:

HCL Software Customer Support Portal for U.S. Federal Government clients
HCL Software Customer Support Portal


Jun 27, 2016, 5:31 AM
40 Posts

Then again Designer Help is sometimes off. Luckily not all bad.

  • Category: Application Development
  • Platform: Windows
  • Release: 9.0.1
  • Role: Developer
  • Tags:
  • Replies: 7
For instance, the help for @UserRoles states that roles for users in groups are not returned.  Thankfully, this is untrue and those roles ARE returned.  Also, because @UserRoles returns only a subset of @UserNamesList, evaluating formulas using @UserRoles is a lot faster than @UserNamesList.
Jun 28, 2016, 8:46 AM
107 Posts
You are right, @UserRoles is sufficient if only roles, no groups, matter
...which is what the OP's first post indicates indeed, if one takes a closer look at the code.

FWIW, the resulting code looks very similar:

var session:NotesSession = database.getParent();
var doc:NotesDocument = <your code here>;
var userNamesList = session.evaluate("@UserRoles", doc)
;

This forum is closed to new posts and responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:

HCL Software Customer Support Portal for U.S. Federal Government clients
HCL Software Customer Support Portal