Hi XPerts -
I tried to use the NotesDirectory Class but get the error msg:
Method NotesDirectory.lookupNames(string, string, Array, boolean) not found, or illegal parameters
my SSJS code goes like:
var userinfo = new Array()<br/>
userinfo[0] = "MailFile"<br/>
userinfo[1] = "MailServer"<br/>
userinfo[2] = "InternetAddress"<br/>
userinfo[3] = "ShortName"<br/>
userinfo[4] = "EmployeeID"<br/>
var ddir:NotesDirectory = session.getDirectory() <br/>
ddir.setSearchAllDirectories(false)<br/>
<br/>
error --> var ddnav = ddir.lookupNames("$Users",@UserName(),userinfo,false)<br/>
doesn't it works with an js array?
if I write
var ddnav = ddir.lookupNames("$Users",@UserName(),"MailFile")<br/>
it doesn't throw an error (at this place) …
… but it stops 2 lines further, at 'ddnav.getNameLocated()':
….
var ddnav = ddir.lookupNames("$Users",@UserName(),"MailFile")<br/>
var mypos = ddnav.findFirstName()<br/>
error --> if (ddnav.getNameLocated()) {<br/>
…
with the msg:
Error calling method 'getNameLocated()' on an object of type 'lotus.domino.local.DirectoryNavigator [Static Java Interface Wrapper, lotus.domino.local.DirectoryNavigator: lotus.domino.DirectoryNavigator]'
so isn't the NotesDirectory not really made for use in JS? I found it in designer's help, but the NotesDirectoryNavigator
is not a proposed domino object in the JS scripting reference.
I tried the whole code (very close to this) in lotus script, there it works without a problem.
Thanks for any help - and sorry for my "german" english, I hope you got my point.
Uwe