Getting the appointment body text using lotus script

I put a custom button in my appointment form and i’m writing lotuscript code to handle its click event.

I need to get the body text of the appointment, add some text to it, and replace the existing body with the edited one.
To achieve that I’m doing this:

If doc.HasItem(“Body”) Then txt = doc.GetItemValue(“Body”)(0)

Then I manipulate the variable ‘txt’. The problem is that it only returns the body that has already been saved. For instance, if i open an appointment that already has the following body: ‘ABCDE’, and type in some extra text: ‘1234ABCDE’, doc.GetItemValue(“Body”)(0) returns ‘ABCDE’, the ‘1234’ is lost.

I already Call doc.Save(True, False, False) before getting the item value. That doesn’t help.
I inspected all document items, there is no hidden item that holds that information.

Does anybody know how i can retrieve that data using lotus script?

Subject: See this

http://www-10.lotus.com/ldd/nd6forum.nsf/d6091795dfaa5b1185256a7a0048a2d0/c0cfc7098136b72385257ef90050d116?OpenDocument http://www-10.lotus.com/ldd/nd6forum.nsf/d6091795dfaa5b1185256a7a0048a2d0/c0cfc7098136b72385257ef90050d116?OpenDocument

Subject: uidoc

What I was missing was a call to uiDoc.Refresh, like this:

If uiDoc.Editmode Then Call uiDoc.Refresh(True, True, True)

Subject: See this

http://www-10.lotus.com/ldd/nd6forum.nsf/d6091795dfaa5b1185256a7a0048a2d0/c0cfc7098136b72385257ef90050d116?OpenDocument http://www-10.lotus.com/ldd/nd6forum.nsf/d6091795dfaa5b1185256a7a0048a2d0/c0cfc7098136b72385257ef90050d116?OpenDocument

Subject: Doesn’t work

Even using RichTextItem the results are the same, makes no difference

Subject: uidoc

How about saving the NotesuiDocument, then getting set notesdocument = uidocument.document then getfirstitem(“body”) then text = item.text