This forum is closed to new posts and responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:

HCL Software Customer Support Portal for U.S. Federal Government clients
HCL Software Customer Support Portal


Nov 10, 2015, 1:43 PM
5 Posts

Getting the appointment body text using lotus script

  • Category: Domino Designer
  • Platform: All Platforms
  • Release: 9.0
  • Role: Developer
  • Tags: lotus,script,appointment,body
  • Replies: 5

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?

 

Nov 10, 2015, 4:31 PM
5 Posts
Doesn't work

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

Nov 10, 2015, 8:33 PM
82 Posts
uidoc
How about saving the NotesuiDocument, then getting set notesdocument = uidocument.document then getfirstitem("body") then text = item.text
Nov 11, 2015, 10:33 PM
5 Posts
uidoc

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

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


This forum is closed to new posts and responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:

HCL Software Customer Support Portal for U.S. Federal Government clients
HCL Software Customer Support Portal