XPage/Notes Text Formatting Issue - Strange

Hi,

There is a field on my Notes Form and the XPage whcih can be updated in either the client or the web. The problem is the text is being displayed differently in the web when the field is updated in the client…

Here is the text in my “Updates” field :

PMP Developer at 14/09/2009 17:01:30 - Update : update 2 Emailed = No


PMP Developer at 14/09/2009 17:01:24 - Update : update Emailed = No

This is an update that has been put in the client but displays as above on the web. When you open the document in the client, there is no tags.

It is a rich text field and i am using this code in the client :

If uidoc.FieldGetText(“UpdateText”) = “” Then

	Messagebox "Please enter some Update Text before clicking 'Update Request'.", MB_OK, "Missing Update Text"

	Exit Sub

End If

If uidoc.FieldGetText("Resolution") = "" Then

	Call uidoc.FieldSetText("Resolution",strName & " at " & strDate & " - Update : " & uidoc.FieldGetText("UpdateText") & " Emailed = " & uidoc.FieldGetText("EmailUpdate"))

Else

	Call uidoc.FieldSetText("Resolution",strName & " at " & strDate & " - Update : " & uidoc.FieldGetText("UpdateText")  & " Emailed = " & uidoc.FieldGetText("EmailUpdate") & Chr(10) & Chr(10) & uidoc.FieldGetText("Resolution"))

End If	

I have also tried to append text to the field using the back-end doc, but that doesn’t work.

Here is the web code (which is in an LS Agent, called from the XPage :

If strAction <> "" Then

	If LogAction  = "" Then

		WebDoc.PrevUpdates = strName & " at " & strDate & " wrote : " & Chr(10) & strAction

	Else

		WebDoc.PrevUpdates = strName & " at " & strDate & " wrote : " & Chr(10) & strAction & Chr(10) & Chr(10) & OldAction

	End If

	WebDoc.UpdateText = ""

End If

Can anyone point me in the right direction as to a method that will give me JUST TEXT without any tags being displayed in either the client or the web?

Thanks - appreciate the help.