Try OpenEdge Now
skip to main content
Online Help
Introducing Tools for Business Logic : Tasks : Modeling components : Editing a component : Adding relationships
 
Adding relationships
You can add links between components in a diagram to indicate relationships.
Note: By default, certain links are automatically created when you add components. For example, when you add a temp table to a ProDataSet diagram, a hierarchical "contains" link is created. You can disable automatic link creation in Tools for Business Logic Preferences.
1. Create a diagram or edit an existing one.
2. In the Connections drawer of the Component Designer palette, click Two-way Reference.
3. In the diagram, click one component, and then click the component to be linked. A broken line appears between the two components, with a text label identifying the relationship type.
*Relationship names: Each relationship has a name, by default the same as the relationship type. If you want to change the default name, select the link on the diagram and then open the Properties view. Click twice on the Name value in the right column, making the field editable, and enter the name of your choice. This name now appears on the diagram, preceded by a plus sign (+).
*Adjusting link lines: You can alter the shape and position of the line that depicts a relationship. Select the line and then position the cursor over the break node that appears at the midpoint. When the cursor appears as a cross, you can click and drag to reshape the line as desired. Each time you move a break node, a new node appears on either side of it, making it possible to shape the line in any way you wish.
Note: The component type definition determines the types of elements that can be linked, and you cannot place a link that is not allowed by the type definitions of both elements. In the case of a hierarchical relationship such as that between a data set and a table, you must click first on the parent element and then on the child. For example, you must click first on the ProDataSet and then on the temp table.