none
[Customizing the PWA Ribbon] Add button which link to Custom list On Project site RRS feed

  • Question

  • Hi everyone,

    I want to add a button on Navigate of Project tab on Project Detail Page as Issues button and Risks button.

    On Project site have a custom list. So I want to stay at Project detail page and click this button, and go to the custom list of project site.

    You can see the Image.

    Please show me the way to do that.

    I hope to see your response soon!

    An Pham

    Wednesday, September 12, 2012 8:42 AM

All replies

  • Hi An--

    It's possible to have a button which can redirect to a custom list based on the project ribbon. Please see the below msdn article. It;s for the project center ribbon. You may try doing on project detail ribbon.
    http://msdn.microsoft.com/en-us/library/office/ff535984.aspx

    There is a ribbon customization sample of project 2010 SDK  that might help with a basic code to start with.

    Hope that helps.


    If you found this post helpful, please “Vote as Helpful”. If it answered your question, please “Mark as Answer”. Thanks, Amit Khare |EPM Consultant| Blog: http://amitkhare82.blogspot.com http://www.linkedin.com/in/amitkhare82

    Wednesday, September 12, 2012 8:52 AM
  • Hi Amit,

    Thanks your quick reply.

    I have just seen this article.

    But it show we the way to add button on project center, not on project detail page?

    Wednesday, September 12, 2012 9:07 AM
  • No problem. Yes, As i said example is for projectcenter from PWAribbon.xml file.

    As mentioned in article:
    CommandUIDefinition Location="Ribbon.ContextualTabs.ProjectCenter.Home.Editing.Controls._children">

    You will need to use the "Ribbon.ContextualTabs.ProjectDrilldown.Options.Link" & add your link as explained in step 2 for 

    <Group Id="Ribbon.ContextualTabs.ProjectDrilldown.Options.Link"  Command="cxtGroupLink" Sequence="30"
       <!-- Other attributes... --> />

    http://blogs.msdn.com/b/project_programmability/archive/2010/09/29/where-is-the-xml-file-for-modifying-the-pwa-ribbon.aspx

    Sample:
    http://epmsource.com/2011/12/13/hiding-disabling-ribbon-items-in-project-server-part-ii/

    Hope that helps.



    If you found this post helpful, please “Vote as Helpful”. If it answered your question, please “Mark as Answer”. Thanks, Amit Khare |EPM Consultant| Blog: http://amitkhare82.blogspot.com http://www.linkedin.com/in/amitkhare82


    Wednesday, September 12, 2012 9:38 AM
  • Hi Amit,

    ~.~ I just try to do follow your guide. But it not successful...

    I want to add on the Location exactly.

    Wednesday, September 12, 2012 11:02 AM
  • Did you solve your Problems? I have the same requirement and I do not know how to do.

    Manuel.

    Wednesday, December 11, 2013 2:31 PM
  • Amit as fast as unprecise

    1. the group depicted on the picture is

    Ribbon.Tabs.PDP.Home.GoTo

    2.  the group seems to have special template "OneLargeSixSmallButtons"- i could not add a button to it (seems it needs to modify the template or something) - decided to add a group after this with my new button:

    <CustomAction Id="Ribbon.Tabs.PDP.Home"  Location="CommandUI.Ribbon">
        <CommandUIExtension>
          <CommandUIDefinitions>
            <CommandUIDefinition Location="Ribbon.Tabs.PDP.Home.Groups._children">
              <Group Id="Ribbon.Tabs.PDP.Home.ContractsGroup" 
                     Command="EnableCustomGroupContracts"
                   Sequence="45" 
                     Title="Договоры" Template="Ribbon.Templates.Flexible2">
                <Controls Id="Ribbon.Tabs.PDP.Home.ContractsGroup">
    
              <Button
    					  Id="Ribbon.Tabs.PDP.Home.ContractsGroup.showContracts"
    					  Sequence="10"
    					  Command="showContracts" LabelText="Реестр договоров" Alt="Переход к реестру договоров проекта"
    					   Image16by16="/ScheduleExtension/Images/contracts-16.png"
    					 Image32by32="/ScheduleExtension/Images/contracts-32.png"
    			 TemplateAlias="o1" />
    		               
                </Controls>
              </Group>
            </CommandUIDefinition>
            
            <CommandUIDefinition
             Location="Ribbon.Tabs.PDP.Home.Scaling._children">
              <MaxSize
                Id="Ribbon.Tabs.PDP.Home.ContractsGroup.MaxSize"
                Sequence="15"
                GroupId="Ribbon.Tabs.PDP.Home.ContractsGroup"
                Size="LargeLarge" />
            </CommandUIDefinition>
          </CommandUIDefinitions>
          
          <CommandUIHandlers>
            <CommandUIHandler
              Command="EnableCustomGroupContracts"
              CommandAction="javascript:return true;" />
          </CommandUIHandlers>
        </CommandUIExtension>
      </CustomAction>


    Sergey Vdovin

    Tuesday, September 16, 2014 2:04 PM