Creating simple associations between classes
Save time and create more comprehensive reports by creating relationships between classes based on their matching properties. For example, you can associate a department name with the department budget, and then include the association in your financial report.
- In the header of Dev Studio, click .
-
Create an association record:
-
In the Label field, enter a title or description for the
association.
Note:
The words SELECT, ORDER, and JOIN are restricted.
- In the Context section, in the Apply to field, press the Down arrow key, and then select a class to which the association applies.
- In the Add to ruleset list, select the ruleset in which you want to include the association.
- In the upper-right corner of the tab, click Create and open.
-
In the Label field, enter a title or description for the
association.
-
Define associations between classes:
-
On the Data Access tab, in the Target
type list, select the other class to which you want to link.
The Selected type and Target type fields show the associated classes.
- In the Foreign key list, select a property of the Selected type class that you want to link with the property of the Target type class.
- In the Key list, select a property of the Target type class that you want to link with the property of the Selected type class.
-
On the Data Access tab, in the Target
type list, select the other class to which you want to link.
- In the upper-right corner of the tab, click Save.