Defining hyperlinks on objects in a DataWindow

The Web DataWindow DTC can pass data in query strings to a target page. You can use the Link To tab page in the Sybase Web DataWindow DTC Properties dialog box to generate hyperlinks around headers and labels, computed fields that are not calculated on the client, graphical elements in a DataWindow, or read-only columns.

Setting links on columns

You can change a column to read-only by setting its tab order to 0, its Protect property to 1, or its Edit.DisplayOnly property to Yes. Hyperlinks can also be set around text objects that use DataWindow expressions to display data from database columns.

When you click in the Link To column next to a DataWindow object, a browse (...) button displays to the right in the row that you clicked. The browse button opens the Link Definition dialog box, where you specify the target page for the link and the data to bind to target page parameters.

Bind types

The types of values you can pass to the target page from a DataWindow object are:

StepsTo link to parameters on other pages

  1. Right-click on a Web DataWindow DTC and select Sybase Web DataWindow DTC Properties.

  2. Click the Link To tab.

  3. Select a DataWindow object to link to (for example, a header or a picture).

  4. Click under the Link To column for the object you selected.

    An ellipsis button displays in the row where you clicked.

  5. Click the ellipsis button.

    The Link Definition dialog box displays.

  6. Click the browse (...) button to open the Choose URL dialog box, select a Web page or file to which you want to link, and click OK.

    You return to the Link Definition dialog box. The name of the target page displays in the URL box. Existing parameters on the target page display under the Name column. You can type in additional parameters, but you need to define them later on the target page.

  7. Select a bind type (for one of the target page parameters) from the Bind Type drop-down list.

    The Bind Value drop-down list is automatically populated for certain bind type selections.

  8. Select or type a value in the Bind Value drop-down list, and click OK.

    The sample shows the Link Definition dialog box. At top is a U R L field with a browse button and the entry employee dot htm. Next is a Parameters area with a blank grayed  field, then columns for Name, Bind Type, and Bind Value with a single row entry that reads i d, Database Column, and emp _ i d.