Hi,I’m hoping that someone from this forum can assist with the issue I have below.
I need to enable a button when clicked on one form, to display values from a Rich text computed field from another form. It is doing it fine but because the form needs to be saved before it appears, it is causing me problems. One main problem is that if a user changes his/her mind after clicking on the button and does not want to save the form by just closing the doc without pressing on the save button, the doc still gets created and saved. I do not want this to happen.
I’ve tried removing the doc save at the end but the second AppendRTitem is truncated or not displaying on the RTF even though the value is there. ie: it will never display the last value when I call AppendRTItem.
Also, I’m wondering if there is a way of getting the Maindescription value without saving the doc first. (do I create a NewRTItem? - but when I do, it creates multiple Maindescription fields in the doc)
As you can see, I have many questions,and appreciate some help with the code below.
Have you tried creating a new doc from the uidoc that displays the RTF values and having a saveOptions=0, this way your creating the entire rich text field in a second temporary document that would require the user to click on the save button in order to move the changes back to the original?
While they’re looking at the tempdoc, you can close the uidoc, still keep it’s handle and if they decide to keep the changes, you can delete the rt field in the uidoc, and push the tempdoc field back to it, save and reopen.
I know this takes a few steps, but I always ended up using a dialog (secondary) form to construct my richtext fields, and then pushed them back… (used for mail merge stuff).
The temp document always kept a copy of the original rt value and the new rtvalue in case I needed to push the old one back.
But this way, I avoided having to save in order to show the rich text.