Headers and Title Bars
Copy
Add a Button to the Main Window Header
“I want to display the ‘help’ content when the user clicks a button in the main window header.”
Figure 41. A main window header button for displaying the default Aras Innovator “help” content
- 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 com.aras.innovator.cui_default.mwh_header 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: Custom_Help_Button
- Sort Order: 75
- 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: cui_default_mwh_onHelpCommand
- Image: choose the icon you want to show on the button
- Additional Data: {"right":true}
- Click the Save button and close the Button tab.
- Logout and login to see the new button in the main window header.
Add a Button to the Search View Title Bar
“I want to display the context ItemType when an admin clicks a button in the search view title bar.”
Figure 42. A search view title bar button for displaying the context ItemType definition
- Navigate to Administration > Methods and create a new JavaScript Method with the following code:
var topWindow = aras.getMostTopWindowWithAras(window); var workerFrame = topWindow.work; if (workerFrame && workerFrame.itemTypeID) { aras.uiShowItem('ItemType',workerFrame.itemTypeID); } - Click Save and close your new Method.
- 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 searchview.titlebar.default 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: Open_ItemType_From_SearchView
- Sort Order: 768
- Action: Add
- For Identity: Administrators
- Right click the new button row and select Open.
- Enter the following properties for the new Menu Button:
- Click Method: choose the new Method you created
- Image: choose the icon you want to show on the button
- Additional Data: { “cssClass": “aras-button_d” }
- Click the Save button and close the Button tab.
Note
The same title bar content can also be configured for the RelationshipsView, SearchDialog, and GraphView locations.