Lotus Notes @command

2009 May 6
by ceebu

I configured a button for my use in LN – and when I had to re-install my machine, It took me a few hours of searching to get this command right… saves TON of time (especially when you are cleaning up your mailbox)

Here is the original link to this article

Folder @Command
Moves or copies the selected document to a folder.

Syntax

@Command( [Folder] ; 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 after all @functions. Use the FolderDocuments @Command to execute immediately. 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 below.

@Command([Folder];"";"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([Folder]; Foldername; MoveOrCopy) except it can move a document from another folder.

No comments yet

Leave a Reply

Note: You can use basic XHTML in your comments. Your email address will never be published.

Subscribe to this comment feed via RSS