Hi
I have a Notes Document (for example a eMail) - this document contains 1 attachment in a RichTextItem (lets call it document.txt). I use LotusScript to remove the attachment. I now have a document that still contains the RichTextItem, the icon displaying the attachment type and the name of the attachment. This is exactly as I want it to be (we are archiving the attachments :o) I place a button in the RichTextItem to restore the attachment - if the user presses the button the attachment is reattached and the user can now double-click the attachment to open the file.
Here is my problem:
If the user ignores the button and just double-clicks the attachment (without first doing a restore) s/he gets the error message “Note item not found” - this is understandable and totally correct - what I would love to do is intercept the error and automatically restore the attachment - I already have the code to restore the file but have nowhere to place it. I have tried creating a link around the icon but just cannot get it to work for me…
any ideas?
Thanks for any help given
Ursus