Defining Global Variables

Define a Global Variable to tell it which file or URL path to use.

If you haven't already created this object, see Creating Global Variables.

This exercise shows how to add new variables to an existing Global Variable object.

  1. In the Global Variables editor, click the Add button.
  2. In the New Global Variable window, type DbName in the Variable Name field and xdb1 in the Replacement Value field.
  3. Click OK to close that window.
  4. In the Global Variables editor, click the Add button.
  5. In the New Global Variable window, type a Variable Name.
  6. In the Replacement Value parameter, specify the file or URL path, either literally or using variables. Options are:
    • Insert existing variable name - Refer to another Global Variable or use another Global Variable as part of the path.
    • Browse for a directory - Choose a specific directory.
    • Browse for a file - Choose a specific file.
    • Browse system properties - Choose a specific system properties key. This will also automatically select the Use System Property checkbox.
    Note: If you want to use a system property that is not available by browsing, select the Use System Property checkbox and type the property name in the Replacement Value parameter manually.
  7. (Optional) There are two reasons you may want to select the Use System Property check box. One is detailed in the previous step.
    The other is in case your operating system needs to insert a "/" or "\" into your variable value during runtime. For example, suppose you create a Global Variable named Separator with the value "file.separator". If Use System Property is selected, the value for that variable is resolved at runtime to a “/” or “\” depending on your operating system. If Use System Property is not selected, then the value will be the string “file.separator”.
  8. Click OK.
  9. In the Perspective Toolbar, click Save.