Show TOC

Creating a Link to Further InformationLocate this document in the navigation structure

Context

You use this procedure to enable the following scenario:

Authors can enter a URL that takes readers to further information on each news item. This involves displaying a link with the link text Read More in a Show or Edit form. This link references the relevant URL.

Since you want to reference a different URL for each news item, you store the URL in an element of the data schema.

Procedure


  1. Create an element in the data schema, such as LinkURL.

  2. Use Drag&Drop to add an input field from the function bar to the Edit form.

    This input field is for entering the URL in the prepared form.

  3. Link the input field with the element of the data schema that you created in step 1 (for example, LinkURL ).

    The Schema Reference property of the input field must include the path of the element in the data schema.

    For more information, see Creating Controls .

  4. Use Drag&Drop to add a text field from the function bar to the Show form.

    You can also place an image control onto the ListShow form and ListEdit form within the list control.

  5. In the Caption property of the label control, enter the text that you want to be displayed. (For example, Read More...).

  6. In the Hyperlink property of the label control, enter the path to the LinkURL element in the data schema.

    Example: /DataSchema/News/Link

    Note

    Leave the Schema Reference field empty. Otherwise, the link is displayed as plain text (for example, http://www.sap.com ) instead of as a caption (for example, Read More... ) at runtime.