Das Notes Forum
Domino 9 und frühere Versionen => Entwicklung => Thema gestartet von: bob am 26.08.02 - 19:09:21
-
Hi,
ich habe in einem Profildokument ein RT-Feld, in dem eine Tabelle, Formatierungen etc. enthalten sind (Größe aber < 10kB).
Nun soll in einem neuen Dok automatisch das RT-Feld "Inhalt" mit dem RT-Feld "Profil_Inhalt" gefüllt werden.
Die Formel
@SetField("Inhalt"; @GetProfileField("Profile_Dok"; "Profil_Inhalt"))
funktioniert dabei leider nicht, weil es sich wohl um ein RT-Feld handelt.
Habt Ihr da einen Tipp?
Danke,
Bob
-
schau dir mal bitte die Methode in LS "AppendRTItem" an(ich hoffe, habe sie richtig geschrieben). In der Notes Help findest Du ein passendes Codebeispiel genau zu Deinem Problem.
-
hallo,
ich würde das dem profildokument das item holen und in das dokument einfügen.
hier ein beispiel aus der notes hilfe
um das profuildokument zu holen folgendes:
Set notesDocument = notesDatabase.GetProfileDocument( profilename$ [ , username$] )
um dann das item zu kopieren, dies:
This script creates a new mail memo and copies the Body item from a saved document to the memo. This example uses the Call statement.
Dim db As New NotesDatabase( "", "review.nsf" )
Dim doc As NotesDocument
Dim memo As NotesDocument
Dim item As NotesItem
'...set value of doc...
Set item = doc.GetFirstItem( "Body" )
Set memo = New NotesDocument( db )
memo.Form = "Memo"
memo.Subject = "Here's a copy of the review."
Call memo.CopyItem( item, "Body" )
Call memo.Send( False, "Viquinha Mayer" )