Define Database Properties for a Relationship
Use the Database page in the Relationship Properties window to create and enable foreign keys for the Relationship. Foreign keys establish and enforce a link between tables in a relational database, and are required by SQL Reporting Services.
To define database properties for a Relationship:
- Open the Relationship Properties window:
- In the
CSM Administrator main window, click the
Blueprints category, and then click the
Create a
New Blueprint task.
Note: If working on a saved Blueprint, open the existing Blueprint.
The Blueprint Editor opens, showing the Object Manager in its Main Pane. The Object Manager lists the existing Business Objects.
- In the Object Manager, click a
Business Object in the Object tree, and
then click the
Edit Relationships task in the Structure
area.
The Relationship Editor opens.
Tip: You can also click the Edit Relationship button
on the Blueprint Editor Toolbar to open the Relationship Editor.
- Click Add to add a new Relationship, or Edit to edit an existing Relationship.
- In the
CSM Administrator main window, click the
Blueprints category, and then click the
Create a
New Blueprint task.
- Click the Database page.
- Define database options:
- Use Blueprint Defaults for Foreign Key: Select this check box to use the global database options defined for Blueprints.
- Create Foreign Key for Relationship: Select this check box to
create a foreign key for the Relationship.
- Not Enforced/Enforced: Select whether or not to enforce foreign keys.
- If enforced, define whether to cascade updates and/or
deletes:
- Cascading Update: Select this check box to cascade updates. This means that if row in a related Business Object table containing a key referenced by the foreign key is updated, all rows that contain the Foreign Keys are also updated with the new value.
- Cascading Delete: Select this check box to cascade deletes. This means that if row in a related Business Object table containing a key referenced by the foreign key is deleted, all rows that contain the foreign keys are also deleted.
-
Click OK.
- Publish the Blueprint (File>Publish Blueprint) to commit the changes, or save the Blueprint (File>Save Blueprint) to continue making other changes.