none
Hiding a button disables ribbon RRS feed

  • Question

  • Hi,

    I am trying to hide a button in the PWA ribbon but each time I try it successfully hides but there is an error that causes all the ribbon buttons to be disabled. The same thing happens when trying to hide any button.

    Any ideas on what could be going wrong? I am using Project Server 2010.

    Here is the code I use to try to hide it: 

    <CustomAction
        Id="Ribbon.Tabs.ResourceConstraintAnalysis.Home.Display.AvailReq"
        Location="CommandUI.Ribbon"
        Title="Hides the Requirements Details button">
      <CommandUIExtension>
        <CommandUIDefinitions>
          <CommandUIDefinition Location="Ribbon.Tabs.ResourceConstraintAnalysis.Home.Display.AvailReq"/>
        </CommandUIDefinitions>
      </CommandUIExtension>
    </CustomAction>

    Here is the error on the page:

    "javascript sys.argumentnullexception: value cannot be null"




    • Edited by MeerDev Thursday, May 16, 2013 4:47 AM
    Thursday, May 16, 2013 4:08 AM

All replies

  • Are you sure that this id is valid: "Ribbon.Tabs.ResourceConstraintAnalysis.Home.Display.AvailReq"

    Can you try with this button:

    <CustomAction
                Id="Ribbon.ContextualTabs.ProjectCenter.Home.ChangeProjectType.Change"
                Location="CommandUI.Ribbon">
            <CommandUIExtension>
                <CommandUIDefinitions>
                    <CommandUIDefinition Location="Ribbon.ContextualTabs.ProjectCenter.Home.ChangeProjectType.Change" />
                </CommandUIDefinitions>
            </CommandUIExtension>
        </CustomAction>

    Do you get same error with this?

    Friday, May 17, 2013 2:20 PM
  • Embarrassingly..I think this was an environment issue... After clearing IE data and restarting it there were no errors. I don't have problems hiding buttons now.

    Thanks for the reply though.

    Friday, May 17, 2013 6:44 PM