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 24, 2016, 11:12 AM
6 Posts

Looking for workaround code

  • Category: Application Development
  • Platform: Windows
  • Release: 9.0.1
  • Role: Developer
  • Tags:
  • Replies: 7

Hello Jochen,

Thank you very much for your input. I'm very new to Xpages. Could you please provide me part of code that could work with NotesSession.evaluate(@UserNamesList)?

Regards,

Abhishek SenGupta.

Jun 24, 2016, 11:40 AM
107 Posts
I don't have a complete code example at my fingertips, but...
...it should be fairly easy to figure out by reading the relevant pages in Domino Designer Help. I'd start with the Help page about the @UserNamesList formula language function, which can be found under "IBM Domino Designer Basic User Guide and Reference", and then proceed with the Help page(s) about the NotesSession class, to be found under "IBM Domino Designer XPages Reference".
Jun 27, 2016, 5:31 AM
40 Posts
Then again Designer Help is sometimes off. Luckily not all bad.
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