locked
Flyout Menu Issue - CRM 2015 RRS feed

  • Question

  • Hi all,

    When creating a custom flyout menu dynamically from the Ribbon Workbench we are getting issues on not being able to click on a sub menu item.

    I have created this dynamic menu according to these instructions on this site:

    https://www.develop1.net/public/post/Add-Dynamic-Menu-to-Ribbon-Button.aspx

    The item is not highlighted when I mouse over it.




    This happens intermittently and usually the items become selectable after I either refresh the page or do something else.

    I do not have any other Jscript libraries attached besides the code to construct the flyout menu.
    Has anyone encountered this issue before?

    This is happening on IE 11 and Chrome. I have cleared cache and cookies and it still happens
    I have also tried setting the CachedMenuVersions to true/false.

    I am using the Ribbon Workbench to construct my ribbonxml in my jscript to create the ribbon dynamically. Here is my code to construct the menu.

     "<Menu Id='demo.CustomReportMenu'>" +
      "<MenuSection Id='demo.CustomReportSection' Title='Shifts' Sequence='10'>" +
        "<Controls Id='demo.CustomReportControls'>" +
          "<FlyoutAnchor Id='0' Command ='Mscrm.Enabled' LabelText='Afternoon' PopulateDynamically='true'   PopulateQueryCommand='mta.mta_alert.PopulateSubMenu.Command' PopulateOnlyOnce = 'true' Sequence='45' TemplateAlias='o2'>" +
            "<Menu Id='0'>" +
              "<MenuSection Id='0' Title='Officers' Sequence='10'>" +
                "<Controls Id='0'>" +
                  "<Button Id='0|842e0c22-680e-e511-80c0-000d3ad01a40' Command='mta.mta_alert.ExecuteAssign.Command' Sequence='30' LabelText='Deepak Mehta' />" +
                  "<Button Id='1|95379a5b-aa6d-e511-80ce-000d3ad01a40' Command='mta.mta_alert.ExecuteAssign.Command' Sequence='30' LabelText='Ian Small' />" +
                  "<Button Id='2|3e204047-aa6d-e511-80ce-000d3ad01a40' Command='mta.mta_alert.ExecuteAssign.Command' Sequence='30' LabelText='Jimmy Lee - Spock' />" +
                  "<Button Id='3|0c1a574b-b86b-e511-80ce-000d3ad01a40' Command='mta.mta_alert.ExecuteAssign.Command' Sequence='30' LabelText='Ajay Dhanwal - Hero1 - NS' />" +
                "</Controls>" +
              "</MenuSection>" +
            "</Menu>" +
          "</FlyoutAnchor>" +
          "<FlyoutAnchor Id='1' Command ='Mscrm.Enabled' LabelText='Shift 1'  PopulateDynamically='true'   PopulateQueryCommand='mta.mta_alert.PopulateSubMenu.Command' PopulateOnlyOnce = 'true' Sequence='45' TemplateAlias='o2'>" +
            "<Menu Id='1'>" +
              "<MenuSection  Id='1' Title='Officers'   Sequence='10'>" +
                "<Controls Id='1'>" +
                  "<Button Id='4|32eb7448-2d51-e511-80c6-000d3ad01a40' Command='mta.mta_alert.ExecuteAssign.Command' Sequence='30' LabelText='Craig Harvey' />" +
                  "<Button Id='5|de9e403e-1f0b-e511-80c0-000d3ad01a40' Command='mta.mta_alert.ExecuteAssign.Command' Sequence='30' LabelText='Emma Cooper' />" +
                "</Controls>" +
              "</MenuSection>" +
            "</Menu>" +
          "</FlyoutAnchor>" +
          "<FlyoutAnchor Id='2' Command ='Mscrm.Enabled' LabelText='Sydney 12/10/2015 AM'  PopulateDynamically='true'   PopulateQueryCommand='mta.mta_alert.PopulateSubMenu.Command' PopulateOnlyOnce = 'true' Sequence='45' TemplateAlias='o2'>" +
            "<Menu Id='2'>" +
              "<MenuSection  Id='2' Title='Officers'   Sequence='10'>" +
                "<Controls Id='2'>" +
                  "<Button Id='6|cecb9bb3-f25f-e511-80ce-000d3ad01a40' Command='mta.mta_alert.ExecuteAssign.Command' Sequence='30' LabelText='Stanley Lai' />" +
                  "<Button Id='7|842e0c22-680e-e511-80c0-000d3ad01a40' Command='mta.mta_alert.ExecuteAssign.Command' Sequence='30' LabelText='Deepak Mehta' />" +
                  "<Button Id='8|1cb4557f-f667-e511-80ce-000d3ad01a40' Command='mta.mta_alert.ExecuteAssign.Command' Sequence='30' LabelText='Chris McHugh - Yankee 3' />" +
                  "<Button Id='9|32eb7448-2d51-e511-80c6-000d3ad01a40' Command='mta.mta_alert.ExecuteAssign.Command' Sequence='30' LabelText='Craig Harvey - Foxtrot 1' />" +
                  "<Button Id='10|0fd41a2f-1f0b-e511-80c0-000d3ad01a40' Command='mta.mta_alert.ExecuteAssign.Command' Sequence='30' LabelText='Michael Bui - Yankee 2' />" +
                "</Controls>" +
              "</MenuSection>" +
            "</Menu>" +
          "</FlyoutAnchor>" +
          "<FlyoutAnchor Id='3' Command ='Mscrm.Enabled' LabelText='Sydney 9/10/2015 PM'  PopulateDynamically='true'   PopulateQueryCommand='mta.mta_alert.PopulateSubMenu.Command' PopulateOnlyOnce = 'true' Sequence='45' TemplateAlias='o2'>" +
            "<Menu Id='3'>" +
              "<MenuSection  Id='3' Title='Officers'   Sequence='10'>" +
                "<Controls Id='3'>" +
                  "<Button Id='11|c27fd01a-1f0b-e511-80c0-000d3ad01a40' Command='mta.mta_alert.ExecuteAssign.Command' Sequence='30' LabelText='Chanpreet Saluja - Zulu 1' />" +
                  "<Button Id='12|54bca450-1f0b-e511-80c0-000d3ad01a40' Command='mta.mta_alert.ExecuteAssign.Command' Sequence='30' LabelText='Bujuanes Livermore - Delta 2' />" +
                  "<Button Id='13|0fd41a2f-1f0b-e511-80c0-000d3ad01a40' Command='mta.mta_alert.ExecuteAssign.Command' Sequence='30' LabelText='Michael Bui - Delta 2' />" +
                "</Controls>" +
              "</MenuSection>" +
            "</Menu>" +
          "</FlyoutAnchor>" +
        "</Controls>" +
      "</MenuSection>" +
    "</Menu>"


    Thanks<o:p></o:p>


    • Edited by Stanley_Lai Friday, November 6, 2015 12:31 AM
    Friday, November 6, 2015 12:28 AM