0
votes

My Lotus Notes document has a rich text item that stores an attachment. I want to edit the attachment and after this to save the attachment back to the Lotus Notes document. This is the script that launches the attachment:

@Command([EditGotoField];"Attachment");  
@Command([EditSelectAll]);
@Command([AttachmentLaunch]);
@Command([EditDeselectAll]) 

This script opens the attachment, but the changes made are not reflected to the Lotus Document. One way of solving this is to add AttachmentActionDefault=2 as an entry to the notes.ini. This enables to edit the attachment when double clicking on attachment. Also using the right click on the attachment, and then choosing edit action, produces the same result. In both cases, after saving, the changes are reflected back to the Lotus Notes document. The problem is that I want to use a button for opening the attachment.

1

1 Answers

0
votes

Maybe you could try adding this formula before your code to set the environment variable in notes.ini.

@SetEnvironment("AttachmentActionDefault"; "2");

I'm not sure if this is the type of preference change that requires a restart of Notes, but it is worth a try.