Item View Sidebar
Copy
Display the ad hoc Graph View from an Item View Sidebar button
“I want to add a button to the sidebar of all items that will show an ad hoc Graph View in the item view.”
Figure 38. A sidebar button for displaying the ad hoc graph is added to the global Item View definition
- Navigate to Administration > Configuration > Client Presentation in the TOC.
- Click the Search button to run the Client Presentation search.
- Click the Global item property in the single search result.
- In the Command Bar Section grid, open the Global Sidebar item.
- Click the Edit button.
Click the New button in the Command Bar Item grid, then select Button > OK in the dialog to create a new button with the following properties:
- Name: My_Ad_Hoc_Graph_Button
- Sort Order: 256
- Action: Add
- For Identity: World
- Right click the new button row and select Open.
Enter the following properties for the new Menu Button:
- Click Method: sidebar_default_gv_click
- Image: choose the icon you want to show when the sidebar button is inactive
- Additional Image: choose the icon you want to show when the button is active
- Click the Save button and close the Button tab.
Display a query-based Graph View from an Item View Sidebar button
“I want to display the Part BOM Graph View when the user clicks a sidebar button on a Part.”
Figure 39. A sidebar button for displaying a specific graph is added to the Part form
- Open the Part ItemType and select the Client Style relationship tab.
- Right click the entry in the grid and select Open to open the Presentation Configuration for the Part ItemType.
- Click the Edit button.
Click the New button in the Command Bar Section grid to create a new section with the following properties:
- Classification: Data Model
- Name: Part_Custom_Sidebar
- Location: ItemWindowSidebar
- Sort Order: 256
- For Identity: World
- Click the Save button, then right click the new Command Bar Section, and select Open.
- Click the Edit button.
Click the New button in the Command Bar Item grid to create a new item with the following properties:
- Type: Button
- Name: My_Graph_Button
- Sort Order: 1100
- Action: Add
- For Identity: World
- Click Save, then right click the new Button, and select Open.
- Click the Edit button.
Set the following properties on the item form:
- Additional Data: {"gvdId": “<graph view id>” }
- Click Method: sidebar_default_gv_click
- Image: choose the icon you want to show when the sidebar button is inactive
- Additional Image: choose the icon you want to show when the button is active
- Click Save, then navigate to Design > Parts in the TOC.
- Open a Part item to see the new button in the sidebar.
- Click the new sidebar button to view the specified Graph View.
Display a Tree Grid View from an Item View Sidebar button
“I want to display the BOM as a Tree Grid View when the user clicks a sidebar button on a Part.”
Figure 40. A sidebar button for displaying a Tree Grid View is added to the Part form
- Open the Part ItemType and select the Client Style relationship tab.
- Right click the entry in the grid and select Open to open the Presentation Configuration for the Part ItemType.
- Click the Edit button.
Click the New button in the Command Bar Section grid to create a new section with the following properties:
- Classification: Data Model
- Name: Part_Custom_Sidebar
- Location: ItemWindowSidebar
- Sort Order: 256
- For Identity: World
- Click the Save button, then right click the new Command Bar Section, and select Open.
- Click the Edit button.
Click the New button in the Command Bar Item grid to create a new item with the following properties:
- Type: Button
- Name: My_TGV_Button
- Sort Order: 1200
- Action: Add
- For Identity: World
- Click Save, then right click the new Button, and select Open.
- Click the Edit button.
Set the following properties on the item form:
- Additional Data: {"tgvdId": “<tree grid view id>”, “startConditionProvider": “ItemDefault({\"id\":\"id\"})” }
- Click Method: sidebar_default_tgv_click
- Image: choose the icon you want to show when the sidebar button is inactive
- Additional Image: choose the icon you want to show when the button is active
- Click Save, then navigate to Design > Parts in the TOC.
- Open a Part item to see the new button in the sidebar.
- Click the new sidebar button to view the specified Tree Grid View.