RichText field Error

Hello, I have problem, i can append new value to RichText field but i can’t able to see new added values in Richtext field.I don’t know what is the reason.

i am using below code.

dim session new notessession

            dim dlgDoc as notesdocument		

Dim L_Title_Val As NotesRichTextItem

Set L_Title_Val = dlgDoc.GetFirstItem("L_Title_1")

	

If L_Title_Val.Type = RICHTEXT Then

Call L_Title_Val.AddNewLine(1)

Call L_Title_Val.AppendText ("title")

Call dlgDoc.save(True, True)

End If

please help me.

Subject: RE: RichText field Error

There’s not enough information here to know for sure what your problem is, but I think it’s one of two things:

You didn’t know that the DialogBox method doesn’t return any rich text information in the dialog document.

You didn’t know that the NotesUIDocument will not display changes to rich text information until it’s closed and reopened.

The answer to the first problem is to either save your rich text information before you close the dialogbox, or use a text field in the dialog instead (you can add the text to a rich text field later if you want).

The answer to the second problem is the Update rich text tip.

If the above does not solve your problem, we need more information about what you’re doing. If you’re not sure what information to supply, the C R I S P Y document might help you.

  • Andre Guirard, IBM/Lotus Development

Useful blog: Best Practice Makes Perfect