Managing Associations and Links

This document covers the following topics:


Selecting the Navigation Model

Navigation models are defined in Predict. They can be defined for predefined objects and user-defined objects.

Note:
In Predict, the name "retrieval model" is used instead of navigation model.

In the tree view window with the name Documentation Objects, all active associations are shown. When a navigation model is used, the display is limited so that only the associations specified in the model are shown. An additional advantage of a navigation model is that it may also show passive associations.

Start of instruction setTo select a navigation model

  1. Select the documentation object for which you want to select a navigation model.

    Tip:
    If you want to select a navigation model for several objects, you have to open the list view window. See Opening the List View Window.

    Or:
    Select a Natural object or library in the library workspace or application workspace.

    In this case, a navigation model can only be used when a documentation for the selected Natural object or library does already exist. When a documentation object does not yet exist and you issue the command described below, an appropriate warning is shown in the result window.

  2. From the Tools menu, choose Development Tools > Object Description > Navigation Model.

    Or:
    Invoke the context menu and choose Navigation Model.

    Or:
    Choose the following toolbar button:

    Toolbar button

    The Navigation Model dialog box appears. The drop-down list box contains all navigation models defined in Predict for objects of the selected type.

    Select navigation model

  3. Select the desired navigation model from the drop-down list box.

  4. Choose the OK button.

    The Navigation Model window appears. The name of the selected navigation model is shown in the title bar. This tree view window displays the node Selected Objects. When you expand this node, all documentation objects that you have selected are shown. You can further expand the nodes to check the associations. Example:

    Navigation model

Displaying the Links for an Association

You can invoke a window listing all linked objects contained in a node for an association. This window provides more information than the tree view window. For example, for an Adabas database, it shows the physical file number of a file and the physical distribution type.

Start of instruction setTo display the links for an association

  1. Select the node for the desired association in the tree view window for the documentation objects.

  2. Invoke the context menu and choose Display Links.

    A window appears displaying a list of linked objects (children). The name and type of the parent object and the name of the association are shown in the title bar.

    Links

  3. Choose the OK button to close the window.

Linking and Unlinking Objects

You can link more objects to a parent object or remove linked objects. You can also modify the sequence of the linked objects.

Start of instruction setTo link and unlink objects

  1. Select the node for the desired association in the tree view window for the documentation objects.

  2. Invoke the context menu and choose Unlink/Link.

    Note:
    There are several associations for which it is not possible to change the list of linked objects. The Unlink/Link command is dimmed in these cases. An example of such an association is "Has Fields"; fields can only be maintained via the object type-specific windows which appear for files and fields.

    A window appears. The name and type of the parent object and the name of the association are shown in the title bar. A list of linked objects (children) is shown on the right side of the window.

    graphics/unlink-link.png

  3. Use the following command buttons to link/unlink objects:

    Command Button Description
    Find Invoke the Find Documentation Objects dialog box in which you can specify the search criteria for the objects that are to be shown on the left side of the window. Found objects can then be moved to the list of linked objects. For information on the Find Documentation Objects dialog box, see Finding Documentation Objects.
    --> Move the objects that are currently selected on the left side of the window to the list of linked objects on the right side of the window. See also the description of the Find button.
    <-- Remove the linked objects that are currently selected on the right side of the window. When a linked object has been removed, it is shown in the list on the left side of the window.
    New Add a new object to the list of linked objects. A dialog box appears in which you have to enter the name for the new object.
    Up Move the selected linked object one position up in the list.
    Down Move the selected linked object one position down in the list.
  4. Choose the OK button to saves all changes and to close the window.

Modifying/Displaying the Attributes of a Link

This function is only available for links where attributes have been defined for the corresponding association in the metastructure of the Predict data dictionary. With the predefined associations this is the case, for example, for the links "Has Files" of an Adabas database, and for the links "Defined in Server" of a DB2 database or file. With user-defined associations, attributes may also be defined. When such attributes have been defined, it is possible to add or modify their values for a link.

Two different commands are available for invoking a window in which you can view and/or modify the attributes of a link:

Command Description
Attributes of Link With this command it is possible to add or modify the attributes of a link.
Display Attributes of Link With this command it is only possible to view the attributes of a link.

Start of instruction setTo modify/display the attributes of a link

  1. Open the node for the desired association in the tree view window for the documentation objects.

  2. Select the desired documentation object.

  3. Invoke the context menu and choose either Attributes of Link or Display Attributes of Link.

    Adabas databases and files only:

    When the logical distribution type "Expanded" or "Partitioned" has been defined, the following Link dialog box appears in which you have to select the link to be modified. A number in the drop-down list box stands for the physical file number.

    Link

    When the Link dialog box has been invoked using the Attributes of Link command, it is also possible to add a new link by selecting <new> from the drop-down list box. Choose the OK button to proceed to the association-specific window (see below).

    The tabs that are shown in the resulting window depend on the type of association. See the reference documentation Predefined Object Types in Predict for further information.

    The following is an example of an association-specific window in which the attributes of the link can be modified.

    Attributes of link

    When the attributes cannot be modified, "read-only" is shown in the title bar. In this case, only the command buttons OK and Help are available.

Printing and Saving a Report for the Attributes of a Link

The information shown in an association-specific window (which can be invoked with the Attributes of Link or Display Attributes of Link command) can also be shown as a report in simple text format. It is possible to print and save this report.

Start of instruction setTo print and save a report

  1. Open the node for the desired association in the tree view window for the documentation objects.

  2. Select the desired documentation object.

  3. Invoke the context menu and choose Report Attributes of Link.

    A window such as the following appears.

    Report

  4. Choose the desired command button:

    Command Button Description
    Print The Print Setup dialog box appears. Specify all required information (for example, a different printer or text orientation) and choose the OK button.
    Save The Save Report dialog box appears. Select the folder in which you want to store the report, specify a report name and choose the Save button.
  5. To close the window in which the report is shown, choose the OK button.