Hi,
Why when you modify a text-rich field in a Dialogbox you can retreive the modification in a document ?
I’m explain, suppose you have a form name “doc” with three editables fields :
Username, type name
Subject, type text
Body, type rich-text.
You have an action button with the following code :
Sub Click(Source As Buton)
Dim ws as New NotesUIWorkspace
Dim db as NotesDatabase
Dim doc As NotesDocument
Dim rtbody As NotesRichTextItem
Set db = ws.CurrentDatabase.Database
Set doc = db.CreateDocument()
doc.Form = “doc”
doc.Username = db.Parent.UserName
doc.Subject = “Subject for example”
Set rtbody = doc.CreateRichTextItem(“Body”)
Call rtbody.AppendText(“Please explain your reason…”)
Call rtbody.AddNewline(1)
Call rtbody.AppendText(“here !”)
Call rtbody.Update()
if( ws.DialogBox(“doc”, True, True,True,True,False,False,“New doc”, doc) ) Then
Call rtbody.Update()
Call doc.Send(False)
End If
If the user modify the username field or subject field the data is updated in my Notesdocument doc send but not the rich-text field Body.
How i can do ?
I don’t want to save the doc because this is a notification send in the user’s mailbox.
Any idea ?