Update rich text field from multiple computed RTF

Hello all, I’ve been trying to come up with a solution for the following problems for awhile now. (pretty new to this)

I have 3 Rich text fields on a form. 2 computed and 1 editable.

I want the values of these RTFs to populate in another form’s RTF after clicking a button.

I can get one of the fields to display but cannot get the other 2. I have followed the excellent post on how to display RTF without saving:

http://www-10.lotus.com/ldd/nd6forum.nsf/55c38d716d632d9b8525689b005ba1c0/dd507a5be7cc2e4285256eec005f56ef?OpenDocument

The scenario is as follows:

  1. User clicks on button on form 1

  2. The RTF on the form1 should display the values of the other form2 depending on the following:

if form=type A show field 1 on form1 RTF

if form = type B show field 1 and field 2 on form1 RTF

if form = type C, show field 1, field 2 and field 3 on form1’s RTF

At the moment, it only displays the last field after closing, saving and reopening the UIdoc using the code from the post.

I cannot get it to populate all 3 with one save. Does the doc have to save 3 times after each AppendRTItem?

Any help on this will be much appreciated.

Subject: Update rich text field from multiple computed RTF

Sue,I did something simliar to what you are doing, and did not have any issues.

Do any of rt fields have hide whens on them - this may cause an issue.

Also without looking at your code, it is hard to say what is wrong. But your answer is No, you do not have to save the rt item after each append.

John