Hi,
I am having a strange error.
If I use,
set db = session.getdatabase(ServerName, session.CurrentDatabase.Filepath, False)
The db is set to Nothing when the Servername is same as the server of the currentdatabase.
For any other server the code just works fine !
Anybody else has known or faced this problem ?
“set db = session.CurrentDatabase” works fine but I have to do a bunch of stuff in a loop
for a lot of servers and the code was working in R5.
Thanks for the reply,
Regards,
Bharat
Subject: ServerName
Where does "ServerName come from? Is it a string that you defined? ServerName IS a property of NotesSession but it only works in COM.
Subject: RE: ServerName
ServerName is just a string variable name
Regards,
Bharat
Subject: session.getdatabase does not return the database
Figured out my problem. Posting the solution/reason over here for the benefit of others.
I was using @SetProfileField([NoPersists]…) in the postopen event. This is an undocumented feature of Notes which Lotus has used in their mail template. But using this will cause the session.getdatabase(…) function to behave erratically as mentioned in my first post. This erratic behaviour was observed in Lotus Notes Client 6.5 and 6.5.1
It seems to have been fixed in 6.5.3
Hope this information helps someone.
Regards,
Bharat Kothari