I have 2 RTI fields and a button. One editable, one computed. When I hit the button, I copy the text, tables, pictures in a computed RT field (I reopen the document in the background programatically).
Everything works ok, except of attachments. The attachment is added in the computed RT field, but if I open it, I receive ‘Notes item not found’ error.
The logic of reopening the document is described here: http://www-10.lotus.com/ldd/nd6forum.nsf/55c38d716d632d9b8525689b005ba1c0/dd507a5be7cc2e4285256eec005f56ef?OpenDocument
It’s difficult to paste all my code here, but the logic is like this:
Dim uidoc As notesuidocument 'original document
'I use AppendRTItem to append first RT to second COMPUTED.
'Here I reopen document programatically
doc.SaveOptions = “0”
Call uidoc.Close(True)
Set uidocNew = ws.EditDocument(True, doc, , , , True)
Call uidocNew.Reload()
Call uidocNew.FieldSetText(FLD_TEXT_TO_ADD,“”)
Delete uidoc
uidocNew.Document.RemoveItem(“SaveOptions”)
Any ideas will be appreciated.