#ProjectServer 2013 / #ProjectOnline project fields displayed on project site #JavaScript #jQuery

June 2, 2014 at 8:48 pm | Posted in Add-on, Administration, Configuration, Customisation, Functionality, Information | 8 Comments
Tags: , , , , , , ,

Just a quick post to highlight a new script I have published this evening. This displays project fields on the associated project site. A full blog post will be coming soon that explains how to use the script and what would need modifying for your environment (custom fields etc.). The script can be downloaded below:


A screen shot of the output is below:


The RAG Status background colour and font colour update based on the custom field value.



  1. Hi Paul,
    I wasn’t able to get this working. When I drop the code into the Script Editor, it displays the column headers, but no data. Is there anything else I need to include besides the custom fields and the script file in the Assets folder?

    Thanks in advance!

    • Hello,
      You will need to ensure your machine has internet access to access the CDN datatable files also. The jquery file also needs to be accessible from the page (make sure the location is correct). As it uses ODATA your account will also need access to the ODATA feeds. I will write a blog post that details this hopefully this week. Paul

      • Thanks Paul, I was able to get this to work. I believe I incorrectly named one of the custom fields. I do have another question however; how do you handle custom fields with spaces? I’ve tried including brackets, but that doesn’t seem to work. Would I have to reference the field by it’s GUID?

      • Hello, As this script uses ODATA the ODATA feed truncates the spaces, so for example “Project Number” would become “ProjectNumber”. Paul

  2. Hi Paul. I can’t use ProjectData service, I’m trying this url in browser: http:///_api/ProjectData//Projects('my project guid’)?$select=ProjectName.
    But I get this error: An unhandled exception occurred during the ODATA forwarding request to the application server.
    Can you help me please?

    • Hello, the URL is not correct, it would be /_api/ProjectData/Projects(guid’youprojectguid’)

Sorry, the comment form is closed at this time.

Blog at WordPress.com.
Entries and comments feeds.

%d bloggers like this: