Help with copy and paste formula

Hi there, this problem is driving me nutsI’m trying to achieve the following in the notes client. I have a rich text field named “attach” where I attach a text document.

The code below runs from a button on the form.

It goes to the attach field and opens the attachment.

It copies all the text in the document and closes the attachment.

It then pastes all the data into a field called “temp”.

@Command([EditGotoField];“attach”);

@Command([EditSelectAll]);

@Command([AttachmentView]);

@Command([EditSelectAll]);

@Command([EditCopy]);

@Command([FileCloseWindow]);

@Command([EditDeselectAll]);

@Command([EditGotoField]; “temp”);

@Command([EditPaste]);@All

It just doesn’t seem to paste the data into temp. It was working perfectly this morning and then bam! stopped working.

Any help greatly appreciated.

Thank you

Subject: help with copy and paste formula

I’m not sure if this could be the problem, but I once had some code that worked only if the Designer client was also open. It drove me nuts too, since “sometimes it worked, sometimes it didn’t”, same code. I finally realized it was only working if Designer was open.

Subject: RE: help with copy and paste formula

Thanks Anastasia,You are totally right about designer, I never test anything unless designer is closed. We are recently upgraded to R6 and apparently users can edit attachments - problem solved!

Thanks for your input