Select View in Project Details Web Part via URL (Server 2019)

%3CLINGO-SUB%20id%3D%22lingo-sub-2083640%22%20slang%3D%22en-US%22%3ESelect%20View%20in%20Project%20Details%20Web%20Part%20via%20URL%20(Server%202019)%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2083640%22%20slang%3D%22en-US%22%3E%3CP%3EHello%2C%3C%2FP%3E%3CP%3EWe%20want%20to%20embed%20the%20Project%20Details%20Web%20Part%20in%20a%20SharePoint%20application%20so%20when%20it%20opens%2C%20it%20shows%20the%20project%20with%20a%20specific%20view%20showing%20only%20milestones.%3C%2FP%3E%3CP%3EWe%20know%20how%20to%20select%20the%20project%20to%20show%20(with%20ProjUID%20parameter).%20We%20don't%20know%20how%20to%20select%20the%20view.%3C%2FP%3E%3CP%3EI%20found%20this%3A%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fsocial.microsoft.com%2FForums%2Fhe-IL%2F00f5cc80-4850-4fbe-a621-414b1aedfdc6%2Fsetting-default-view-in-pwa-2013-project-center%3Fforum%3Dprojserv2010setup%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Ehttps%3A%2F%2Fsocial.microsoft.com%2FForums%2Fhe-IL%2F00f5cc80-4850-4fbe-a621-414b1aedfdc6%2Fsetting-default-view-in-pwa-2013-project-center%3Fforum%3Dprojserv2010setup%3C%2FA%3E%3C%2FP%3E%3CP%3Ebut%20it's%20about%20Project%20Center%20and%20not%20Project%20Details.%3C%2FP%3E%3CP%3ECan%20it%20be%20done%20also%20with%20Project%20Details%20web%20part%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThanks%2C%3C%2FP%3E%3CP%3EBarak%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-2083640%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EProject%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EProject%20Server%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3ESharePoint%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E
Occasional Contributor

Hello,

We want to embed the Project Details Web Part in a SharePoint application so when it opens, it shows the project with a specific view showing only milestones.

We know how to select the project to show (with ProjUID parameter). We don't know how to select the view.

I found this: https://social.microsoft.com/Forums/he-IL/00f5cc80-4850-4fbe-a621-414b1aedfdc6/setting-default-view-...

but it's about Project Center and not Project Details.

Can it be done also with Project Details web part?

 

Thanks,

Barak

1 Reply

Hi @Barakb321 

As you know the view cannot be selected from the URL using for example an ID like you can do for the project UID. You might try to adapt the code proposed in your reference on the project detail page (.aspx).