Monday, October 22, 2007

Creating Custom Menu - Cognos Analyst

User defined menus are added before the Window and Help menus on the menu bar.
When using custom menus, you must create a .txt file.

This text file will consist of menu header and different menu level information.
File for Custom menu will always be a .txt file.

Syntax for creating menu is as follows:-

<Menu Level no><Menu Name>::M|<Library No> <Macro name>

Where;

  • Menu Level No is Level 1, 2, 3, 4 .....n
  • Level 1 is considered to be the top level, Level 2 will be a drop down under Level 1, etc ...
Few things to be remembered while creating custom menu text files are as follows: -
  • In a text file semi-colon(;) indicates comments/ remark.
  • Ampersand (&) is a highligted char in the menu, which can be used for selecting from keyboard ALT+(&)character.
Example of a custom menu file: -

;Custom menu for Cognos
1Cognos &Incorporated
2&Lists
3&Timescale::M|600102 DLO-periods
3&Versions::M|600102 DLO-Budget Versions
3&Profit and Loss Accounts::M|600102 DLO-Accounts
2&Update
3&Profit and Loss::M|600102 DCU-Accounts

In the above example, Menu is created as
  • "Cognos &Incorporated" --> "Lists" --> Timescale
  • "Cognos &Incorporated" --> "Lists" --> Versions
  • "Cognos &Incorporated" --> "Lists" --> Profit and Loss Acconts
  • "Cognos &Incorporated" --> "Update" --> Profit and Loss
Steps:

  1. From the Tools menu, click Options.
  2. Click the Custom tab.
  3. In the Custom Menu File text box, type the path of the custom menu, or browse for the file.
  4. Click OK.
  5. You are prompted to restart Analyst.
  6. For the changes to take effect, click Yes. Analyst closes and re-opens.