Adding a URL to Launch a Web Page

This document provides information on how to use the representation class links to launch a web page. It explains how to create a link to:


  • Open a web page using a fixed URL.

  • Use a dynamic URL from the current context.

  • Opening a web page using a fixed URL

    1. Open your representation class.
    2. Go to the Links tab.
    3. In the Filter block, set Anchor type to "Page".
    4. In the Links block:
      1. Enter a unique code for the filter in the Code field.
      2. Leave the Generated field empty.
      3. Set Active link to "Yes".
      4. Enter a description for the link in the Description field (for example, "Amazon").
        The description will be displayed on the right-hand panel of the Query facet screen.
      5. Set Type to "Free".
      6. Enter the correct URL in the URL field (for example, "www.amazon.co.uk").
      7. Set the Attribute field to "Simple link".
      8. Select the Query check box.
    5. Save and validate your representation class.

    You can then open your web page by clicking Description in the right-hand panel of the Query facet screen.

    Using a dynamic URL from the current context

    In this example, we will add a link to a representation class Detail and Edit facets to search www.amazon.co.uk for a book with the same title as the current book record being displayed.

    1. Open your representation class.
    2. Go to the Links tab.
    3. In the Filter block, set Anchor type to "Page".
    4. In the Links block:
      1. Enter a unique code for the filter in the Code field.
      2. Leave the Generated field empty.
      3. Set Active link to "Yes".
      4. Enter a description for the link in the Description field (for example, "Search for title").
        The description will be displayed on the right-hand panel of the Query facet screen.
      5. Set Type to "Free".
      6. Enter the correct URL in the URL field.
        In this example, we will enter "http://www.amazon.co.uk/s/ref=nb_sb_noss_1?url=search-alias%3Daps&field-keywords={TITLE}", where {TITLE} is the name of the class property alias that holds the name of the book. It will be replaced with the current value of the TITLE property alias when the link is selected.
      7. Set the Attribute field to "Simple link".
      8. Select the Detail and the Edit check boxes.
    5. Save and validate your representation class.

    You can then open your web page by adding a value to the TITLE property alias in the Detail or Edit facet screen, and then clicking Description in the right-hand panel of the Query facet screen.