Adding an Expression for a Hotlink as a Column to a Browser Window - MapInfo_Pro - 2023

MapInfo Pro Help

Product type
Software
Portfolio
Locate
Product family
MapInfo
Product
MapInfo > MapInfo Pro
Version
2023
Language
English
Product name
MapInfo Pro
Title
MapInfo Pro Help
First publish date
1985
Last updated
2023-09-12
Published on
2023-09-12T16:39:16.995549

The follow describes how to use an expression for a hotlink and how to add the expression as a column to a Browser window and persist it.

To add an expression as a column to a geographic table:

  1. Open the table in both a Map and Browser window.
  2. In the Layer Control (on the HOME tab, in the Windows group, click Tool Windows, and click Layers from the list.), select your layer.
  3. On the MAP tab, in the Options group, click Hotlink Options .
  4. In the Hotlink Options dialog box:
    1. Click Add to add a new filename expression to the list.
    2. From the Filename Expression drop-down list, select the column to add a hotlink expression for, such as for country name or capital name.
    3. From the Alias Expression drop-down list, select Expression.
  5. In the Expression dialog box:
    1. Before the column name, add the hotlink URL followed by the plus sign (+). The URL must be within quotation marks (" "). The following example replace the URL with the one you want to use and replace ColumnName with the column name selected in the previous step: "http://www.myurl.com"+ColumnName
    2. Click Verify to check that the expression works.
    3. Copy the expression to the clipboard by selecting it and pressing Ctrl+C.
    4. Click OK to close the dialog box.
  6. In the Hotlink Options dialog box, check the Save options to table metadata check box and click OK.
  7. Right-click on the Browser window and in the pop-up menu that displays, select Pick Fields.
  8. In the Pick Fields dialog box, from the Fields in Table list, select Expression.
  9. In the Expression dialog box, paste your expression field by pressing Ctrl+V. Click OK to close the dialog box.
  10. In the Pick Fields dialog box:
    1. In the Name field, type a descriptive name, such as URLlinks.
    2. Check the Save as Default Browser view check box and click OK.

In the Browser window, there is a new column at the end of your table (you may need to scroll to see it) containing a list of hotlinks.