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?