Home > Paul Mather, Work > #ProjectOnline / #ProjectServer 2013 update Owner label on PDP #JavaScript #jQuery

#ProjectOnline / #ProjectServer 2013 update Owner label on PDP #JavaScript #jQuery

Paul Mather
I am a Project Server and SharePoint consultant but my main focus currently is around Project Server.
I have been working with Project Server for nearly five years since 2007 for a Microsoft Gold Certified Partner in the UK, I have also been awared with the Microsoft Community Contributor Award 2011.
I am also a certified Prince2 Practitioner.

This article has been cross posted from pwmather.wordpress.com (original article)

A quick post to support a very simple script to change the Owner display label on a Project Detail Page page. Quite often clients request to change the Owner to something else such as Project Manager. The script can be downloaded from the script gallery below:

http://bit.ly/1FOXor1

This code will replace “Owner” with “Project Manager” but can easily be updated.

To get the script to work you will need to download the following jQuery library: jquery-2.1.1.min.js – jQuery download Another version of this library may work but this was the one I used / tested with. Upload this library to your PWA site collection then update the script file with the correct location. I uploaded this file to the style library as you can see in the code below:

image

Alternatively you can reference a CDN if preferred.

Once the script is downloaded, upload this to the PWA site collection, in this example it was uploaded to the shared documents library. Select the PDP that has the Owner field displayed, then reference the uploaded script using the content editor web part:

image

In this example it is the Project Information PDP.

Once loaded, Owner will display as Project Manager:

image

One thing this script doesn’t handle is if you have another custom field on the page that contains “Owner” in the string, that will also get replaced 🙂

This is a very simple script but do test this before rolling out to production etc.

The script is provided “As is” with no warranties etc.

Advertisement
Categories: Paul Mather, Work Tags:
  1. No comments yet.
  1. No trackbacks yet.

Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: