Q
Problem solve Get help with specific problems with your technologies, process and projects.

Send email with doclink back to parent form

I have a main form and a response to that form. When the user clicks on the "submit" button on the response form, I want it to send out an e-mail with a doclink to the main (parent) form rather than the response form itself.

The response form already inherits the DocID of the parent -- but I'm a complete script neophyte and have no clue how to send the e-mail without including the doclink back to the parent instead of the child.

Could you kindly provide the code? I've tried posting elsewhere, but I just get answers such as "use appendrichtextitem." That doesn't help me because I don't know how to code in script. I would love the actual block of code. I am willing to beg and grovel! Thanks you.

First get a handle to the parent document using the DocID in the response. Then use that document in the append doclink method.
Set ParentDoc = currentDB.
GetDocumentByUNID
( currentdoc.pparentID(0) ) 

Set newMemo = New NotesDocument( db )
  'create memo 
Set rtitem = New NotesRichTextItem
( newDoc, "Body" ) ' create body
' use appendTest to add other body text
Call rtitem.AppendDocLink( ParentDoc,
 "comment information",  "Hot spot 
information")
Take a look at this for more information on appendDocLink.

Do you have comments on this Ask the Expert question and response? Let us know.

Dig Deeper on Web Development for Lotus Notes Domino

Have a question for an expert?

Please add a title for your question

Get answers from a TechTarget expert on whatever's puzzling you.

You will be able to add details on the next page.

Start the conversation

Send me notifications when other members comment.

Please create a username to comment.

-ADS BY GOOGLE

SearchWindowsServer

Search400

  • iSeries tutorials

    Search400.com's tutorials provide in-depth information on the iSeries. Our iSeries tutorials address areas you need to know about...

  • V6R1 upgrade planning checklist

    When upgrading to V6R1, make sure your software will be supported, your programs will function and the correct PTFs have been ...

  • Connecting multiple iSeries systems through DDM

    Working with databases over multiple iSeries systems can be simple when remotely connecting logical partitions with distributed ...

SearchDataCenter

SearchContentManagement

Close