Das Notes Forum

Domino 9 und frühere Versionen => ND6: Entwicklung => Thema gestartet von: Alexis am 23.02.05 - 11:08:28

Titel: Mit rtitem.Append Links ergänzen
Beitrag von: Alexis am 23.02.05 - 11:08:28
Hallo Forum,

mit folgendem Script kann ich einen Link ins Parent-Dokument eintragen. Nun möchte ich die bisherigen Links und Attachments im Feld "Attachments" des Parent-Dokumentes aber erhalten, so dass der Link nur drangehängt wird.

Set rtitem = New NotesRichTextItem (parentdoc,"Attachments")
Call rtitem.AppendText("Link to ... --> ")
Call rtitem.AppendDocLink(source.Document, "")

Wie stelle ich das an?

Alexis
Titel: Re: Mit rtitem.Append Links ergänzen
Beitrag von: Glombi am 23.02.05 - 11:14:31
Ich würde es so machen:

Set rtitem = parentdoc.GetFirstItem("Attachments")
if rtitem is nothing then
 Set rtitem = New NotesRichTextItem (parentdoc,"Attachments")
End if
Call rtitem.AppendText("Link to ... --> ")
Call rtitem.AppendDocLink(source.Document, "")

Andreas
Titel: Re: Mit rtitem.Append Links ergänzen
Beitrag von: Alexis am 23.02.05 - 12:17:45
Hallo Andreas,

vielen Dank, klappt prima!

Was würde ich nur ohne Euch Know How - Träger machen?  :-*

Alexis