none
Problem when try to customize the project server ribbon RRS feed

  • Question

  • Hi guys

    I am trying to create six buttons in a project server ribbon.

    This buttons have to be on the project detail information on project tab. I will create a new group of buttons called Documentation.

    I am using this link (http://epmsource.com/2011/01/31/invoke-project-status-reporting-direct-from-the-ribbon/) such as a tutorial. But I am having some problems.

    I can create a group and the buttons fine, but I want to create small buttons not large like the example. So I changed the size tag from "LargeLarge" to "SmallSmall" and works, but when I did it I can't see the label, I just see the image icon.

    Does anyone could help me?

    Another thing: I want to create a button to redirect to a list that is on the project site. How can I get the project site url to create my button? Is it possible?

    cheers


    Renato Torres Project Blog - Projetizando


    Wednesday, June 27, 2012 7:53 PM

All replies

  • Hi guys

    I fixed the label problem. I changed the tag size to "MediumMedium" and the text appeared.

    But the redirect button I still can't do


    Renato Torres Project Blog - Projetizando



    Thursday, June 28, 2012 7:35 PM
  • Hi Renato--

    Since you figured out the tag size which fixed the text to display. Regrading you question: "Another thing: I want to create a button to redirect to a list that is on the project site. How can I get the project site url to create my button? Is it possible?", From query string, you can get the projUID, You can call a stored proc where you can set the ProjUID as parameter to get the Project site URL (ProjectWorkspaceInternalHRef)

    SELECT 
    	[ProjectUID],
    	[ProjectWorkspaceInternalHRef]
    FROM [MSP_EpmProject]
    WHERE [ProjectUID] = @ProjUID

    Once youy have the url , you can concatenate the list url  (<SiteURL>Lists/ListName/AllItems.aspx) & redirect to the list page.

    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

    Friday, June 29, 2012 5:07 AM
  • Hi amit,

    Tks for your help.

    So, I created a aspx page in my project that I customized my ribbon. And insert this javascript code to redirect for the page that I created

    function

    runMeet() {


    var

    ProjectUID = getQuerystring('projuid');


    var

    URLString = 'http://gerenciamentoprojetos/pwa/_layouts/RibbonCustomization/RedirectPage.aspx?projecUID='+ ProjectUID;

    OpenPopup(URLString);

    }

    But look like I can't acess this aspx page. Is it possible to create a aspx page on the same project or I have to create 2 differents projects?

    Cheers


    Renato Torres Project Blog - Projetizando

    Friday, June 29, 2012 2:44 PM
  • Renato,

    if you want to do sometung like the 'Documents' or 'Risks' button, there is a generic redirection page already present. It's URL is something like:

    <a href="https:///project/_layouts/PWA/Common/WSSNav.aspx?Project=c3a7b5ab-6090-4333-8331-8cc45615c11d&WSSListType=101&Task=f43d67d5-7d2a-45c6-9490-eab1e53fe4e6">https://<server>/project/_layouts/PWA/Common/WSSNav.aspx?Project=c3a7b5ab-6090-4333-8331-8cc45615c11d&WSSListType=101&Task=f43d67d5-7d2a-45c6-9490-eab1e53fe4e6

    I'm not sure if all parameters are required - in particular the Task ID might be a problem in your case. But it might me something to consider. 


    Jan Cirpka

    Monday, July 2, 2012 8:41 AM
  • Hi Jan,

    Tks for your reply.

    So, the list that I want to access is a custom list. I can't access this one using Wssnav.aspx

    Do you know another way?

    Tks again


    Renato Torres Project Blog - Projetizando

    Monday, July 2, 2012 2:30 PM