locked
setting default view in PWA 2013 project center? RRS feed

  • שאלה

  • Hi all,

    Is that possible to set a view with special "grouped by" as a default view for project center for all users in PWA 2013? 

    We want to have a view grouped by departments, and all users see this view at first

    thanks 

    יום שני 15 יוני 2015 11:31

תשובות

  • Hi Marymk1363,

    The answer is no.  The default view is the summary view.  I agree what you would like to do would be desirable, but Microsoft have chosen not to implement it.


    Ben Howard [MVP] | web | blog | book | P2O

    • סומן כתשובה על-ידי Mary.k1363 יום שלישי 23 יוני 2015 06:48
    יום שני 15 יוני 2015 20:24

כל התגובות

  • Hi Mary,

    you can create Project/Project Center views using server setting options, more details here: https://technet.microsoft.com/en-us/library/gg597631(v=office.14).aspx

    However, please note that user can always change views settings of their own profile such as group by/filter etc. etc. and these changes will stay for that user profile only.

    hope this helps.


    Khurram Jamshed - MBA, PMP, MCTS, MCITP ( Blog, Twitter, Linkedin )
    If you found this post helpful, please “Vote as Helpful”. If it answered your question, please “Mark as Answer”.

    יום שני 15 יוני 2015 16:31
  • Hi Marymk1363,

    The answer is no.  The default view is the summary view.  I agree what you would like to do would be desirable, but Microsoft have chosen not to implement it.


    Ben Howard [MVP] | web | blog | book | P2O

    • סומן כתשובה על-ידי Mary.k1363 יום שלישי 23 יוני 2015 06:48
    יום שני 15 יוני 2015 20:24
  • Actually, the answer is yes, if you are comfortable with a bit of customization using JavaScript.

    1. Create the view as documented by Khurram.

    2. Navigate to the Project Center, editing the page and add a Script Editor web part

    3. Edit the snippet on the web part and add the following code:

    var projCenterExt;
    var JsGridSatellite;

    _spBodyOnLoadFunctionNames.push("projCenterChangeView")

    function projCenterChangeView()
    {
       if (window.location.search.toLowerCase().indexOf("viewuid") >= 0)
       {
          var JsGridViewUid = window.location.search.toLowerCase().split("viewuid=")[1].split("&")[0];
         
          if (typeof projectCenterComponent !== 'undefined')
          {
             if (typeof JsGridSatellite === 'undefined') JsGridSatellite = projectCenterComponent.get_GridSatellite();
            
             JsGridSatellite.LoadNewView({uid: JsGridViewUid});
          }
       }
    }

    • הוצע כתשובה על-ידי Daniel J. Partridge יום חמישי 25 אוגוסט 2016 22:13
    יום חמישי 25 אוגוסט 2016 20:30
  • Thanks Daniel for sharing this.  I'm no coder so would like to ask a question.  Where in the script do I define which view I want as the default - do I need the view ID or something similar? 

    Ben Howard [MVP] | web | blog | book | P2O

    יום שישי 26 אוגוסט 2016 08:32
  • There is no modification needed for the code as it is generic and will only "do something" if the Project Center (/pwa/Projects.aspx) URL has an additional URL query string of "ViewUID".

    You would get the GUID from the view defined in the PWA settings page.  If you click on "Manage Views" and select a Project Center view, when it opens the URL will contain that ViewUid from that item.

    Here is the URL from my PWA site:

    https://myProjectServer/sites/pwa/_layouts/15/pwa/Admin/ViewsAddMod.aspx?idViewUID=63d3499e-df27-401c-af58-ebb9607beae8&idViewType=1

    The "63d3499e-df27-401c-af58-ebb9607beae8" is the view GUID.

    To then use this you functionality to change the Project Center view, you would add the query string to the URL for the project center (the code makes the "ViewUID" non-case sensitive):

    https://myProjectServer/sites/pwa/Projects.aspx?ViewUID=63d3499e-df27-401c-af58-ebb9607beae8


    יום שני 29 אוגוסט 2016 19:31
  • Hello Daniel,

    This trick is not working in my case.

    I have project Server 2013 and I am using the same query string you have mentioned. However it is opening the summary view only.

    Do I need to update any setting? 

    יום שישי 04 נובמבר 2016 05:33
  • Hey Daniel

    Thanks for this. It worked wonderfully on Chrome however on IE 11, it has rendered 2 project center grids! Does this work for you on IE 11?

    יום שני 07 נובמבר 2016 01:36
  • In my case the Daniel's script works but with a minor modification. I changed viewuid by idviewuid.

    Hope works for you.

    Daniel Villacis


    Daniel Villacis

    יום שלישי 29 נובמבר 2016 21:13
  • In all Project Server versions, the default view is the “Summary View”, and unfortunately, there is no OOTB setting to set a view as default in Project Center.

    However, you can check one of these workarounds at Project Server 2016: Set Project Center View As Default  to set the view as default in Project Center.


    [About Me] | [SPGeeks Blog] | [deBUG.to]


    יום חמישי 03 דצמבר 2020 17:00