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



May 13, 2013, 3:48 PM
453 Posts

Re: Search In view Results

  • Category: Server Side JavaScript
  • Platform: Windows
  • Release: 8.5.3
  • Role: Developer
  • Tags: search in view results
  • Replies: 11
This is really strange

I have set the var user to the distinguished name  :

var user:String = context.getUser().getDistinguishedName(); 

then make the query
 

tmpArray[cTerms++] = "(FIELD ACCurrentApprovers CONTAINS \"" + user + "\")";
and it fails to find any documents, however if I set the var user to the Common Name

  var user:String = @Name("[CN]",context.getUser().getDistinguishedName());

it finds the correct users, which is OK until there are two people in the organization with the same common name but in different OU's  

would the "/" in the distinguished name CN=Some Name/O=Some Org causing problems. Clearly ACCurrentApprovers is fully distinguished as is the getUser().getDistinguishedName()


I've got it working but not deliverable.   
 
May 14, 2013, 3:22 PM
4 Posts
I see the same behavior
If I use Notes search with FIELD editorlist CONTAINS "CN=Michael Stewart/OU=Cambridge/O=IBM" I see the same behavior: No results. If I do this, I get the results I expect: FIELD editorlist CONTAINS Michael Stewart AND FIELD editorlist CONTAINS Cambridge AND FIELD editorlist CONTAINS IBM It does seem like that distinguished name string is a problem in itself. No idea why, but does this alternate approach help at all?

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