Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Retrieve value from multiple RichText fields with same name

Status
Not open for further replies.

imtechie

Programmer
Apr 29, 2007
3
US
I have HTML code stored in a richtext field called printHTML. After i save the document and check the document properties, i see 3 printHTML richtext fields of same name having different dup item id(0,1,2).

Now, when i try to read the contents of the printHTML field i am able to get the HTML code stored in the first printHTML field (with dup item id of 0).

I am using the follwing code:

Set item = doc.GetFirstItem("printHTML") //reading RT item
Print item.Values //printing the html code to web.

Any ideas on how i would be able to get the entire contents from all the three printHTML fields.

thanks.
 
I believe that you are simply witnessing normal Notes behavior where rich text fields are concerned.

Check just about any mail you recieve and I'm pretty sure the Body field will be repeated several times - especially if there is an attachment.

In other words, don't worry about multiple versions of the same RT field - Notes manages RT differently from other fields.

To retrieve the content of an RT field, you can either use LotusScript, grab the RT object and use the GetFormattedText or GetUnformattedText methods to retrieve the text from the field (enough for HTML in your case), or you can use Formula language with the function @Text, which does text extraction from an RT field since R6.

Pascal.


I've got nothing to hide, and I'd very much like to keep that away from prying eyes.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top