Home  Administration > Application Administration > Repositories Administration > Context Menu Items Repository > Example Scenario - Creating a New Context Menu Item > Stage 1: Create the Context Menu Item



Stage 1: Create the Context Menu Item

The first stage involves creating the context menu item in the Dashboard Repositories. The new context menu item will access the runbook application HTTP page that contains the details for the selected transaction, and display the page content in a new browser window.

In order to create a context menu item, you can add a completely new menu item, or clone an existing one that is similar to what you need and edit its properties. In this scenario, a new menu item is created.

To create the new context menu item:

  1. Select Admin > Dashboard.
  2. Move your mouse pointer over the Repositories tab title and click the down arrow  Down arrow that appears.
  3. Select the Context Menu Items tab menu option to open the context menu items page.

    Context Menu Item page

  4. In the Custom Context Menu Items area, click New Item (located bottom-right) to create a new menu item. The Context Menu Item Details window is displayed.

    Context Menu Item - Contex Menu Item Details page

  5. Enter the details in the top three boxes as follows:
    • Display Name - enter a name for the context menu item you are creating, for example, Access Runbook.
    • Pre-processor Class - select Preprocessor: Dashboard Generic URL from the list.
    • Post-processor Class - select Postprocessor: Open Window from the list.
    • When you select the Pre-processor Class and Post-processor Class options, the default parameters for each selection are automatically added in the Pre-processor Parameters and Post-processor Parameters areas.

      Pre-processors and post-processor parameters

  6. In the Pre-processor Parameters area, click the Edit button for the URL parameter to open the Pre-processor Parameter Details window.
  7. In the Value box, enter the static part of the URL for the application Web page that the menu item will access, for example: http://bacmon.nwie.net/ioc

    Leave the Convert to box empty.

    Pre-processor Parameter Details page

    Click OK.

  8. Define the following two additional parameters in the Pre-processor Parameters area. These parameters define the dynamic component of the URL, so that the accessed page shows content for the selected transaction.
    • PROFILE_ID
    • TRANSACTION_NAME
    • To add a parameter in the Pre-processor Parameters area, click New (located bottom-right of the area).

      Adding a pre-processor parameter

  9. In the displayed Pre-processor Parameter Details window, define the following information for the PROFILE_ID parameter:

    Adding information to the PROFILE_ID parameter

    • In the Key box, enter PROFILE_ID
    • In the Value box, enter NODE.PROPS.SESSION_ID
    • In the Convert to box, enter profile
    • Click OK.
  10. Repeat steps 7 and 8 to define the TRANSACTION_NAME parameter, using the following information:

    Adding the TRANSACTION_NAME parameter

    • Key - enter TRANSACTION_NAME
    • Value - enter NODE.PROPS.TRANSACTION_NAME
    • Convert to - enter transaction
  11. Check that the added parameters are listed in the Pre-processor Parameters area of the Context Menu Item Details window.

    Viewing the new pre-processor parameters

  12. In the Post-processor Parameters area, click the Edit button for WIN_NAME to open the Post-processor Parameter Details window. In the Value box, enter a name for the window opened by the menu item, for example, Runbooks.

    Editing the WIN_NAME parameter

  13. Click OK.

  14. Click OK to close the Context Menu Item Details window. Then new context menu item is displayed in the Custom Context Menu Items area of the Repositories Context Menu Items page.

    Viewing the new context menu item




Copyright 2006 Mercury Interactive Corporation