none
How to disable menu entry from calendar item context menu in Outlook 2010 RRS feed

  • Question

  • Hello,

    i'm trying to disable the entry "do not send a response" (decline gallery) from calendar item context menu.
    Disabling the whole gallery works fine with this xml:

    <?xml version="1.0" encoding="utf-8"?>
    <customUI onLoad="OnLoad" xmlns="http://schemas.microsoft.com/office/2009/07/customui">
    <contextMenus>
        <contextMenu idMso="ContextMenuCalendarItem">
            <gallery idMso="MenuDeclineInvitation" enabled="false"/>
        </contextMenu>
    </contextMenus>

    But if i try to disable only the special entry:

    <?xml version="1.0" encoding="utf-8"?>
    <customUI onLoad="OnLoad" xmlns="http://schemas.microsoft.com/office/2009/07/customui">
    <contextMenus>
        <contextMenu idMso="ContextMenuCalendarItem">
            <gallery idMso="MenuDeclineInvitation">
                <button idMso="DeclineInvitationNoResponse" enabled="false" />
            </gallery>
        </contextMenu>
    </contextMenus>

    nothing happens. IsDeclineInvitationNoResponse the wrong idMso? Or is the whole xml wrong?


    Thanks in advance for your help.
    Greets Werner


    Sunday, October 13, 2013 8:42 AM

All replies

  • Hi Werner,

    Thank you for posting in the MSDN Forum.

    I'm trying to involve some senior engineers into this issue and it will take some time. Your patience will be greatly appreciated.

    Sorry for any inconvenience and have a nice day!

    Best regards,

    Fei


    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click HERE to participate the survey.

    Tuesday, October 15, 2013 6:39 AM
    Moderator
  • First of all thank you very much for your effort.

    In the meantime my requirements changed so please let me specify my question.
    I have to disable "do not send a response" in every view it exist.
    After some research i found following out:
    In the appointment view (Microsoft.Outlook.Appointment) i can disable the button with this XML:
    <?xml version="1.0" encoding="utf-8"?>
    <customUI onLoad="OnLoad" xmlns="http://schemas.microsoft.com/office/2009/07/customui">
      <commands>
          <command idMso="AcceptInvitationNoResponse" enabled="false" />
        <command idMso="TentativeInvitationNoResponse" enabled="false" />
        <command idMso="DeclineInvitationNoResponse" enabled="false" />
      </commands>
    </customUI>

    Using this the buttons in the main ribbon and in the contextmenu are disabled as expected.

    But if i am in the normal explorer view (Microsoft.Outlook.Explorer) right after starting Outlook 2013 unfortunately this XML does not work after marking an appointment which i am invited to.
    I tried following XML but it does not work either:

    <?xml version="1.0" encoding="utf-8"?>
    <customUI onLoad="OnLoad" xmlns="http://schemas.microsoft.com/office/2009/07/customui">
      <ribbon>
        <contextualTabs>
          <tabSet idMso="TabSetAppointment">
            <tab idMso="TabAppointment">
              <group idMso="GroupCalendarRespond">
                <gallery idMso="MenuAcceptInvitation">
                    <button idMso="AcceptInvitationNoResponse" enabled="false" />
                </gallery>            
              </group>
            </tab>
          </tabSet>
        </contextualTabs>
      </ribbon>    
    </customUI>

    I'm looking forward for your help
    Greets Werner

    Wednesday, October 16, 2013 6:24 AM