Aras Innovator Platform

Headers and Title Bars

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

  1. Navigate to Administration > Configuration > Client Presentation in the TOC.
  2. Click the Search button to run the Client Presentation search.
  3. Click the Global item property in the single search result.
  4. In the Command Bar Section grid, open the com.aras.innovator.cui_default.mwh_header item.
  5. Click the Edit button.
  6. 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:

    1. Name: Custom_Help_Button
    2. Sort Order: 75
    3. Action: Add
    4. For Identity: World
  7. Right click the new button row and select Open.
  8. Enter the following properties for the new Menu Button:
    1. Click Method: cui_default_mwh_onHelpCommand
    2. Image: choose the icon you want to show on the button
    3. Additional Data: {"right":true}
  9. Click the Save button and close the Button tab.
  10. 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

  1. 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);                                                    }                                                
  2. Click Save and close your new Method.
  3. Navigate to Administration > Configuration > Client Presentation in the TOC.
  4. Click the Search button to run the Client Presentation search.
  5. Click the Global item property in the single search result.
  6. In the Command Bar Section grid, open the searchview.titlebar.default item.
  7. Click the Edit button.
  8. 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:
    1. Name: Open_ItemType_From_SearchView
    2. Sort Order: 768
    3. Action: Add
    4. For Identity: Administrators
  9. Right click the new button row and select Open.
  10. Enter the following properties for the new Menu Button:
    1. Click Method: choose the new Method you created
    2. Image: choose the icon you want to show on the button
    3. Additional Data: { “cssClass": “aras-button_d” }
  11. 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.