Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Inserting form address links in the body of a memo

Status
Not open for further replies.

gem28

Instructor
Nov 5, 2001
64
PH
Hi! I have created a form with links to 4 other forms depending on the condition satisfied. I have to send the selected form to the addresses specified in the field. I'd like to add the address of the form to the body of the message. I used the script below:

Sub Click(Source As Button)

Dim workspace As New NotesUIWorkspace
Dim session As New NotesSession
Dim db As NotesDatabase
Dim uidoc As NotesUIDocument
Dim doc As NotesDocument
Set db = session.CurrentDatabase
Set uidoc = workspace.CurrentDocument
Set doc = New NotesDocument( db )
doc.Form = "Memo"
doc.Subject = "Re: " + uidoc.FieldGetText( "FormType" )
doc.Body = "test message"
Call doc.Send( False, uidoc.FieldGetText( "Address" ) )
Msgbox "sending successful"

end sub

...if i add an address link in "doc.Body", it's identified as text. Please help me solve this problem. Thanks. :)

Tine
 
If I am not mistaken, your question ressembles the one asked here : thread73-772850. The response should be adequate.

Also, be careful with your wording. A form is a design element and you do not link to it. You link to the documents that are created/visualized with forms.

Sorry for being pedantic, but there is a potential for confusion there.

Pascal.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top