Das Notes Forum
Domino 9 und frühere Versionen => ND8: Entwicklung => Thema gestartet von: watschn am 28.08.08 - 10:06:33
-
Hallo,
ich hoffe das ist hier das richtige Forum für meine Frage. Ich suche nach einer Möglichkeit, eine Lotus Notes Datenbank über MS Access (VBA) zu öffnen. Der User soll in der Access Datenbank durch Klick auf einen Button eine bestimmte Notes DB öffnen können. Mehr soll nicht sein, kein Datenaustausch oder dergleichen...
Hat irgendwer ne Idee?
Gruß,
Michael
-
ODBC-Treiber?
-
Das hört sich klassisch nach einem Entwickler-Problem an!
Ansonsten funktioniert das bei ensprechend importierter Klasse ganz normal:
Set LNSession = CreateObject("Notes.NotesSession")
Set LNWorkspace = CreateObject("Notes.NotesUIWorkspace")
LNMailServer = LNSession.GETENVIRONMENTSTRING("MailServer", True)
LNMailDBName = LNSession.GETENVIRONMENTSTRING("MailFile", True)
LNUserName = LNSession.UserName
wobei LNSession und LNWorkspace Methoden und Eigenschaften analog der LS-Referenz haben. (-> LNSession.openDatabase)
MfG Kai
-
eine bestimmte Notes DB öffnen
Im Abszess- oder im Notes-Client?
-
@ m3
die DB soll im Notes Client geöffnet werden, ich gehe davon aus dass Notes gestartet ist
-
Na dann einfach als Link z.b. Notes://.... - siehe Designer-HIlfe und Forumssuche.
-
Ok der Link über Notes:// funktioniert grundsätzlich
Aber wie kann ich auf eine Notes DB zugreifen, die sich nicht im Hauptverzeichnis sondern in einem Unterordner befindet?
Ich bekomme trotz Angabe des Pfades immer die Meldung "Datei nicht vorhanden"
-
The general forms of URLs that address Domino objects are as follows:
protocol://host/database?OpenDatabase
protocol://host/database /view?OpenView
protocol://host/database /form?OpenForm
protocol://host/database /document?OpenDocument
protocol://host/database /agent?OpenAgent
For local calls, the protocol is "notes" and the host is empty so that the URL starts with "notes:///" ("notes," colon, and three slashes).
The database can be specified by name or replica ID. The name can include spaces (you can substitute plus signs for the spaces but it is not necessary). The name need not include the type suffix if it is NSF. The replica ID can be specified as the 16-digit ID by itself or the 16-digit ID prefixed by two underscores and suffixed by the file type (for example, NSF).
-
Also mit protocol://... funktionierts nicht. Da wird versucht die URL übers Internet zu öffnen.
Mit Notes:// und ewig rumprobieren funktionierts jetzt aber.
Danke und Gruß,
Michael
-
Äh, Notes:// ist eines der möglichen Protokolle ...
Bernhard