By submitting your personal information, you agree that TechTarget and its partners may contact you regarding relevant content, products and special offers.
functionality can be attained using formula but there are situations where you
want to forward a document thru script. Let's see some of the places where we
can use it.
1. Notes Document to be sent to users thru script and also who don't have
access to the application.
2. Some updation has be done thru script and also wants to forward this
document to some users.
3. Want to forward a document without user intervention.
Create a new form in your database and call it as "Memo". Create the following
7. SaveOptions and set it to computed and value as "0".
Enable the property "Inherit entire selected document into Rich Text Field" and
select the field name as "Body" and "Rich Text". Now, Save and Close the form.
Let's say you have Monthly Sales Details form and a mail has to be triggered
with this document on close event. Type the following code in the close event
of the document.
Sub Queryclose(Source As Notesuidocument, Continue As Variant)
Dim oUiWs As New NotesUiWorkspace
Dim oUiDoc As NotesUiDocument
Set oUiDoc = oUiWs.ComposeDocument("","","Memo2")
Call oUiDoc.FieldSetText("Subject","Monthly Sales Details")
Check the mail. Hope this helps.