Das Notes Forum
Domino 9 und frühere Versionen => Entwicklung => Thema gestartet von: Stephanie am 18.07.02 - 08:08:16
-
Hallo Zusammen
Ich suche ein Script mit dem ich Dokumente von der DB A in die DB B schreiben kann. Die Dokumente in der DB A haben andere Feldnamen wie in der DB B. Hatt jemand ein solches Script?
Für Eure Hilfe danke ich Euch.
Gruss
-
Frisch aus der Notes Developer Hilfe
This script copies the Body and BriefDescription items from a document to a new mail memo in the current database. The Body item keeps its name; the BriefDescription item is renamed Subject.
Dim session As New NotesSession
Dim db As NotesDatabase
Dim doc As NotesDocument
Dim memo As NotesDocument
Dim itemA As NotesItem
Dim itemB As NotesItem
Set db = session.CurrentDatabase
'...set value of doc...
Set itemA = doc.GetFirstItem( "Body" )
Set itemB = doc.GetFirstItem( "BriefDescription" )
Set memo = New NotesDocument( db )
Call itemA.CopyItemToDocument( memo, "" )
Call itemB.CopyItemToDocument( memo, "Subject" )
Call memo.Send( False, "Cynthia Brainey" )
-
Hallo
Besten Dank für Deine Hilfe. Nun noch eine kleine Frage die beiden Datenbanken liegen auf verschiedenen Server. Wo gebe ich den Server-Pfad ein?
Danke im voraus.
Gruss