I am working on a XPage application for my company. The XPage application being developed is sitting on server1 and it needs to get a view in another database on server2.
When I tried to use the following script in my XPage application on server1 I failed to get what I want.
var db = session.getDatabase(“server2”,“dir2\db2.nsf”);
var view = db.getView(“view2”);
The error meesage I got is as follows.
Exception occurred calling method NotesDatabase.getView(string) null
I am pretty sure that the server name, directory name, file name and view name are all correct. In addition, I have access to both servers and databases.
Wondering if it is a bug in version 8.5.1. It would be great if anyone could share with me your thoughts or ideas to figure it out.
Thanks,
Jackie