Skip to Content
author's profile photo
Former Member

Add MenuItem ?

Hi, all !

I have a little question. Is it possible add MenuItem to SubMenu Administration / System Initialization ? I don't catch MenuUID for this submenu.

Thank, You

Daniel

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

3 Answers

  • Posted on Nov 11, 2004 at 12:20 PM

    Hi Daniel,

    as said in the UI API help file, it is not allowed adding menu items to the first level of the main menu.

    Sorry, I think you would have to find another place for you menu.

    Regards,

    Ibai Peñ

    Add comment
    10|10000 characters needed characters exceeded

  • author's profile photo
    Former Member
    Posted on Dec 17, 2004 at 07:14 PM

    Daniel,

    you can find the MenuUID in the help file UI API 2004, for Administration/System Initialization, the UID is 8192

    Ivan

    Add comment
    10|10000 characters needed characters exceeded

  • author's profile photo
    Former Member
    Posted on Dec 19, 2004 at 03:34 PM

    Hello Daniel

    Like Ivan wrote, the UID is 8192, and it's possible to add a submenu.

    Following XML-String works for me (use LoadBatchActions to load ;):

    <Application>
        <Menus>
            <action type="add">
                <Menu Checked="0" Enabled="1" Position="0" 
                    FatherUID="8192" String="Test1" Type="1" UniqueID="Test1" >
                </Menu>
            </action>
        </Menus>
    </Application>

    (Code is taken from UI-Helpfile, I just changed the FatherUID to 8192. From the same section in the UI-Help is following vb6 code to finally load it:

    Dim oXMLDoc1 As MSXML2.DOMDocument
    Set oXMLDoc1 = New MSXML2.DOMDocument
    oXMLDoc1.Load ("C:menu.xml")
    SBO_Application.LoadBatchActions oXMLDoc1.xml

    Florian Zeller

    Add comment
    10|10000 characters needed characters exceeded