none
Approval center Ribbon Customization RRS feed

  • Question

  • I have created a solution based on this http://msdn.microsoft.com/en-us/library/office/ff535984(v=office.14).aspx#pj14_CustomizeProjectCenter_CreatingProject

    Please anyone have a look at the below Elements.xml and let me know why i am not getting buttons

    <?xml version="1.0" encoding="utf-8"?>
    <Elements xmlns="http://schemas.microsoft.com/sharepoint/">
      <CustomAction Id="ApprovalCenterPage.AdditionalScript"
          Location="ScriptLink"
          ScriptSrc="CustomizeApprovalCenter/CustomizeApprovalCenter.js"/>
        <CustomAction Id="Ribbon.ContextualTabs.TaskUpdates.Home" Location="CommandUI.Ribbon" Title="Add custom buttons to the Project Center">
          <CommandUIExtension>
            <CommandUIDefinitions>
              <CommandUIDefinition Location="Ribbon.ContextualTabs.TaskUpdates.Home.Data.Controls._children">
                <Button Id="Ribbon.ContextualTabs.TaskUpdates.Home.Data.ABC"
                  Sequence="41"
                  Command="ProjectCenterShowSelected"
                  LabelText="Show Selected Projects"
                  Alt="Show Selected Projects"
                  ToolTipTitle="Show Selected Projects"
                  ToolTipDescription="Show the GUID and project name for the selected projects."
                  Image16by16="/_layouts/images/CustomizeProjectCenter/LookupInfo_16x16.png"
                  Image32by32="/_layouts/images/CustomizeProjectCenter/LookupInfo_32x32.png"
                  TemplateAlias="o1" />
              </CommandUIDefinition>
              <CommandUIDefinition Location="Ribbon.ContextualTabs.TaskUpdates.Home.Data.Controls._children">
                <ToggleButton Id="Ribbon.ContextualTabs.TaskUpdates.Home.Data.XYZ"
                  Sequence="42"
                  Command="ProjectCenterToggleRowMonitor"
                  LabelText="Toggle Row Events"
                  Alt="Toggle Row Events"
                  ToolTipTitle="Toggle Row Events"
                  ToolTipDescription="Enable or disable monitoring of row change events."
                  Image16by16="/_layouts/images/CustomizeProjectCenter/AddEventHandler_16x16.png"
                  Image32by32="/_layouts/images/CustomizeProjectCenter/AddEventHandler_32x32.png"
                  TemplateAlias="o1" />
              </CommandUIDefinition>
            </CommandUIDefinitions>
            <CommandUIHandlers>
              <CommandUIHandler Command="ProjectCenterShowSelected"
                CommandAction="javascript:window.pc.DisplaySelectedRecords();"
                EnabledScript="javascript: function AlwaysTrue(){return true;} AlwaysTrue();"/>
              <CommandUIHandler
                Command="ProjectCenterToggleRowMonitor"
                CommandAction="javascript:window.pc.ToggleMode();"
                EnabledScript="javascript: function AlwaysTrue(){return true;} AlwaysTrue();"/>
            </CommandUIHandlers>
          </CommandUIExtension>
        </CustomAction>
    </Elements>


    Regards, Pankaj Waghmare - MCTS | Consultant

    Friday, January 25, 2013 1:25 PM