FolderDocuments @Command (Formula Language)

Moves or copies the selected document to a folder.

Note: This command is new with Release 6.

Syntax

@Command( [FolderDocuments] ; folderName ; moveOrCopy )

Parameters

folderName

Text. Optional. The name of the folder to which you want to move or copy the selected document. If you omit this parameter, Notes/Domino displays the Move to Folder dialog box, where you can choose a folder.

moveOrCopy

Number ("1" or "0"). Optional. A value of "1" moves the document to the folder. A value of "0" copies the document to the folder. If you omit this parameter, Folder assumes a value of "0" (copy).

If you include moveOrCopy with a value of "0" but omit folderName, Notes/Domino displays the Move to Folder dialog box with the Move button dimmed. If you include moveOrCopy with a value of "1" but omit folderName, Notes/Domino displays the Move to Folder dialog box with all of its options available.

Usage

This command executes immediately. Use the Folder @command to execute after all @functions. See the "Order of evaluation for formula statements" topic for more details.

If you don't want to specify a folderName, but you want to specify a moveOrCopy, use a NULL string as shown.

@Command([FolderDocuments];"";"1")

A saved document must be open or selected in a view.

Folder does not work for new documents. If multiple documents are selected in a view, they are all moved or copied to the folder.

@AddToFolder works just like @Command([FolderDocuments]; Foldername; MoveOrCopy) except it can move a document from another folder.

Note: The following feature is new with Release 5.

This @command works on the Web if "Use applet in the browser" is in effect for the implementing view or folder.