EditMakeDocLink @Command (Formula Language)
Creates a link to the current document and copies it to the Clipboard. The user can paste the link into any rich text field.
Syntax
@Command( [EditMakeDocLink] )
Usage
- A document must be selected in a view
or
- A document must be open in Read or Edit mode. A new document must be saved before you can create a link to it using this command.
After this command is triggered, the status bar displays, "DocLink copied to clipboard. Use Paste to insert it into a document."
This command does not work on the Web.
Examples
This formula, when added to a hotspot button on a form, creates a document link of the current document and copies it to the clipboard. If the document has new, it first saves it before creating the link.@If(@IsNewDoc;@Do(@Command([FileSave]);@Command([EditMakeDocLink]));@Command([EditMakeDocLink]))