IC5Notice: We have upgraded developerWorks Community to the latest version of IBM Connections. For more information, read our upgrade FAQ.
Topic
  • 2 replies
  • Latest Post - ‏2011-05-25T22:08:29Z by eldomino
eldomino
eldomino
6 Posts

Pinned topic Adding menu position from script

‏2011-05-04T13:53:36Z |
Hi,

I wonder if there is a possibility to write a Python/Syntax script that would automatically creating my own menu instead of using the menu editor.

I'll be grateful for any help.

Regards
eldomino
Updated on 2011-05-25T22:08:29Z at 2011-05-25T22:08:29Z by eldomino
  • SystemAdmin
    SystemAdmin
    1106 Posts

    Re: Adding menu position from script

    ‏2011-05-04T14:52:48Z  
    You can, of course, create your own dialogs and add them to the menu system using the Custom Dialog Builder. If you have built a custom dialog, you can add it to the menu tree just be copying the component files to a certain location. That is normally under ext\lib under your Statistics installation, but users can set an environment variable to point elsewhere.

    The Menu Editor does not have apis that expose its functionality, but it is all done (on Windows) by creating Registry entries. Create an item manually and look in the Registry to see what these look like.
    Look under
    HKEY_CURRENT_USER\Software\JavaSoft\Prefs\com\ibm\/S/P/S/S\/Statistics\19.0\ui\other_apps
    for example, for V19 entries.
    You can then use scripting code to manipulate the Registry. But be careful, as always, since messing with the Registry can mess up your system.

    HTH,
    Jon Peck
  • eldomino
    eldomino
    6 Posts

    Re: Adding menu position from script

    ‏2011-05-25T22:08:29Z  

    Thank you Jon

    Updated on 2014-07-22T08:50:31Z at 2014-07-22T08:50:31Z by eldomino