Attaching the Tree Grid View to an ItemType
Copy
The Tree Grid View item includes an Action that automatically creates a RelationshipType and attaches it to the specified Context Item Type. The created RelationshipType automatically inherits the same name as the one used for the Tree Grid View item. The RelationshipType also inherits a custom view as defined by the table which populates based on the query defined in the associated Query Definition item.
- To create a RelationshipType, select the Tree Grid View.
- Only run the action once. Running the action a second time results in an error message because the RelationshipType already exists. However, it is still possible to make changes to both the Tree Grid View and the Query Definition items.
- Select the Relationship Tab as the target usage in the Set Tree Grid Usage dialog box.
- Choose the Relationship Name.
- Set the grid conditions.
- Define the Starting Conditions: set them to filter based on the Part ID.
- Click Generate to create the view.
- Click the More button and then click Remove Tree Grid View Usage to remove a TGV.
- Select the ItemTypes that should be removed from the TGV.
Click the More
button and select Set Tree Grid View Usage in the drop-down menu.
Note
The Define Starting Conditions checkbox is used to set filters on the Root Node (Part). Otherwise, all results will be returned. In this case all Parts in the database.
Note
In order to see the new tab on the Items, you may need to log out and log back in.
Activating the Part TGV Tree Grid View created in Section 2 Creating Tree Grid Views should result in a relationship tab that looks similar to the one shown in figure 25. Clicking on the links should open associated item windows.