Document as attachment

HI Friends,

          I have a requirement like having the Response documents as Link. this should be accomplised using a agent. when a button archive is clicked all the response documents link should be added to the parent form.  

How can I attach a link by writing a agent. Any help will be highly appriciated.

Regards

Shivaji

Subject: Document as attachment

See the NotesRichtextitem class and NotesEmbeddedObject class

Subject: Document as attachment

You’ll need a rich text field on the parent document to hold all the links (can be computed so not user-editable). Then your lotusscript agent can get a handle on the parent documents and then get a collection of response documents through the document.Responses property. Loop through the collection and add the links to the richtext field using the notesRichTextItem.AppendDocLink method. Save the updated parent and you’re done.