Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Rich Text Fields from One Doc to Another

Posted on 2001-07-20
2
Medium Priority
?
480 Views
Last Modified: 2013-12-18
In Lotus Notes design ...  I am trying to bring in data from fields in one doc to another (by unique docid) using an action button which has this code below.  This brings in the data sucessfully for Category but not for Body.   The only difference is that Body is a Rich Text field, while Category is not Rich Text.    How do I get a Rich Text field from one doc to another?   Thanks.

REM "The Unique ID field point to doc that houses the template.";
FIELD Body     := Body;
FIELD Category := Category;
@SetField("Body";    @GetDocField("2E02E270D58FA62286256A8F005937DF"; "Body"    ));
@SetField("Category";@GetDocField("2E02E270D58FA62286256A8F005937DF"; "Category"))
0
Comment
Question by:blyons48
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 

Accepted Solution

by:
puneetfred earned 300 total points
ID: 6303321
This is given in Notes help. pls see below:

Examples: AppendRTItem method

This script takes the Body item on document B and appends it to the end of the Body item on document A. The Body item on document B is deleted using the Remove method defined in NotesItem.

Dim docA As NotesDocument
Dim docB As NotesDocument
Dim rtitemA As Variant
Dim rtitemB As Variant
'...set values of docA and docB...
Set rtitemA = docA.GetFirstItem( "Body" )
Set rtitemB = docB.GetFirstItem( "Body" )
If ( rtitemA.Type = RICHTEXT And _
rtitemB.Type = RICHTEXT ) Then
  Call rtitemA.AppendRTItem( rtitemB )
  Call rtitemB.Remove
  Call docA.Save( False, True )
  Call docB.Save( False, True )
End If
0
 
LVL 24

Expert Comment

by:HemanthaKumar
ID: 6303413
Your formula will work if you do that from an action/agent from view by selecting the document where you want the contents to be transfered. @getdocfield for Rtitem will not work in UIdocuments. It will work only for backend document. Even the script will append the rtitem, but you have to save and close and reopen the document for the richtext to realize.

~Hemanth
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This is an old article, please see an updated version of this article, located here: http://www.experts-exchange.com/articles/23619/Notes-8-5x-Windows-7-Notes-info-and-tips.html
Problem "Can you help me recover my changes?  I double-clicked the attachment, made changes, and then hit Save before closing it.  But when I try to re-open it, my changes are missing!"    Solution This solution opens the Outlook Secure Temp Fold…
This course is ideal for IT System Administrators working with VMware vSphere and its associated products in their company infrastructure. This course teaches you how to install and maintain this virtualization technology to store data, prevent vuln…
In response to a need for security and privacy, and to continue fostering an environment members can turn to for support, solutions, and education, Experts Exchange has created anonymous question capabilities. This new feature is available to our Pr…
Suggested Courses

610 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question