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 ...
- 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.
;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
- From the Tools menu, click Options.
- Click the Custom tab.
- In the Custom Menu File text box, type the path of the custom menu, or browse for the file.
- Click OK.
- You are prompted to restart Analyst.
- For the changes to take effect, click Yes. Analyst closes and re-opens.