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.
- Click the More
button and select Set Tree Grid View Usage in the drop-down menu.
Figure 19.
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.
Figure 20.
- Choose the Relationship Name.
Figure 21.
Set the grid conditions.
Figure 22.
NoteThe 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.
- Define the Starting Conditions: set them to filter based on the Part ID.
Figure 23.
Click Generate to create the view.
Figure 24.
NoteIn 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 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.
Figure 25.
- Click the More button and then click Remove Tree Grid View Usage to remove a TGV.
Figure 26.
- Select the ItemTypes that should be removed from the TGV.
Figure 27.