Subject: LotusScript - Best way to reference database on a cluster?
Assuming they’re clicking a button from an application on the same server (which could be either server of course), get the current server and use that:
dim currentdb as notesdatabase
set currentdb = s.currentdatabase
set db = new notesdatabase(currentdb.server, “Sales.nsf”)
Subject: RE: LotusScript - Best way to reference database on a cluster?
How do I get a db.Openwithfailover to open as a UI Document? Users are in a current.database (thier mailbox), they click on an action button to open another file ie.
Dim session As notesSession
Dim currentdb As notesdatabase
Set currentdb = session.currentdatabase
Dim db As New NotesDatabase
REM because a User Interface db (uidb) does not work with OpenWithFailover so I must use a db first.
Set db = New notesdatabase (currentdb.server, “Resource.nsf”)
** At this point, how do I set db to become a NotesUIDatabase? Because db.OpenView says this is not a member of OpenView. But a notesUIDatabase is a member of OpenView
Call NotesUIDatabase.OpenView(“Reservations By Date”, ,True)