Has two databases in folder structure and apps/live/db1.nsf apps/live/db2.nsf. Want to find a view of db2.nsf when I stand in db1.nsf
Works if I type the url as below.
var database = session.getDatabase = (“CN = server / O = server”, “apps/live/db2.nsf”)
But I want to find the database dynamically. Would then just use db2.nsf
How?
Regards
Fredrik
Subject: Binding to External Databases
Hmm… I posted an article on Xpages blog about binding to external DB’s. May be of some interest.
I don’t really address folders… but remember you have all the backend objects that you have with lotusscript. So you should be able to get the path to the CURRENT database with something like
database.getFilePath()
and parse out the folders and all that and build that part of the code dynamically.