开发者

Open an attachment for editing and save changes made to it

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.


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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜