Solved

Rich Text Fields from One Doc to Another

Posted on 2001-07-20
2
474 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 100 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: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone 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

Suggested Solutions

Title # Comments Views Activity
Lotus notes email code 6 122
LEI - MINUS/EXCEPT statement ability between Notes and SQL 1 105
Lotus Domino server 9 7 89
ESXCLI upgrade command 1 138
I thought it will be a good idea to make a post as it will help in case someone else faces these issues. I trust this gives an idea how each entry in Notes.ini can mean a lot for the Domino Server to be functioning properly. This article discusses t…
  In today’s Arena we can’t imagine our lives without Internet as we are highly used to of it. If we consider our life style just for only 2 min we found that face to face communication is swapped by e-communication.  Every Where from Works place to…
I've attached the XLSM Excel spreadsheet I used in the video and also text files containing the macros used below. https://filedb.experts-exchange.com/incoming/2017/03_w12/1151775/Permutations.txt https://filedb.experts-exchange.com/incoming/201…
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial

726 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