BlueCielo TeamWork 2012 Configuration Guide | BlueCielo ECM Solutions

You are here: About application links > Linking to external applications

Linking to external applications

All other TeamWork application links besides the type described in this topic link to TeamWork from the other application. There is another type of application link possible in TeamWork, from TeamWork to external applications. This type of link can be useful for Starting applications for many different purposes:

You link to these external applications by adding an item to the Tools menu in the TeamWork client applications. The definition of the menu item specifies a command line to run and up to nine command-line arguments that specify property values of the selected object. You can create up to 63 external application links in this way.

To create an external application link:

  1. In Configurator, expand Environment in the configuration tree and select Application Link Settings. The settings for each link appear in property pages in the right pane.
  2. Click the Application Integration tab. The Application Integration settings page appears in the right pane.
  3. Click the Edit button to modify the settings.

Tip    To export the settings file to your computer, click the Export button. This can be useful if you would rather edit the file in your favorite text editor. You can then copy your changes to the Clipboard and paste them into Configurator.

  1. Locate the [ToolsMenu] section in the text. If one does not exist, create it.
  2. Type a line in the [ToolsMenu] section in the form <Command line>=<Menu item name>. For example: notepad.exe = Open Notepad. If you want to pass arguments on the command line that are TeamWork property values, type one placeholder for each argument on the command line in the form $n where n is a sequential number from 1 to 9. For example, notepad.exe $1 = Open in Notepad.
  3. Type one line in the[ToolsMenu] section for each placeholder used in the command line in the form <$n>=<PropertySet.PropertyName> where $n is a placeholder and where <PropertySet.PropertyName> is the property name whose value you want to pass as $n. For example:

$1=CommonPropertySet._DISPLAYNAME

Tip    You can find the names of property sets and properties on the Properties page of each document type, as described in Creating and editing document types.

Tip    To redefine a placeholder with a different property value for a different menu item, repeat the placeholder declaration with the new property value before specifying the menu item command line.

  1. Click OK to save your changes.
  2. Test the menu items from the Tools menu in PowerUser.

When a user selects the menu item from the Tools menu, TeamWork substitutes the property values for the selected object (folder or document) for the placeholders in the command line and sends the command line to Windows for execution. 

Tip    You can type lines with the special word DEBUG in the [ToolsMenu] section to test placeholders and confirm property values. The word DEBUG instructs TeamWork to display the results of the remainder of the line in a message box. For example, the following command line will display the message box in the following figure:

DEBUG notepad.exe $1 = Open in Notepad

When you are satisfied with the syntax of the line, remove the word DEBUG to make the link fully functional.

Tip    The DEBUG instruction supports the text formatting options described in the BlueCielo TeamWork VBScript API Reference.

Note    The special placeholder $VAULTPATH represents the path to the current vault and can be used to call custom external applications to open the vault, such as to access and export data. The placeholders $ID and $PATH can be used to pass the selected document’s file system ID and file system path, respectively if the application needs to change the file even though it is not under change in TeamWork.


Copyright © 2000-2012 BlueCielo ECM Solutions

www.bluecieloecm.com