FORMULA LANGUAGE


EditDetach @Command
Example

Detaches a file attachment to a location you specify.

Syntax

@Command( [EditDetach] )

or

@Command( [EditDetach] ; sourcefile ; targetfile )

Parameters

sourcefile


targetfile
Usage

With no parameters, displays the Save Attachment dialog box for the current attachment. A document must be open in Read or Edit mode and the attachment must be selected.

This command is useful in action buttons; it cannot be added to a hotspot button. It does not work on the Web.

With both parameters, detaches the specified sourcefile and stores it using the targetfile path and file name without displaying the Save Attachment dialog box. A document must be open in Read or Edit mode, but since you are specifying which attachment to detach, the attachment does not have to be selected.

Language cross-reference

ExtractFile method of LotusScript NotesEmbeddedObject class

extractFile method of Java EmbeddedObject class

Example
See Also