#ProjectOnline / #ProjectServer View Resource Calendar Exceptions #JavaScript #jQuery #Office365 #SharePoint

May 1, 2015 at 10:41 am | Posted in Add-on, Administration, Configuration, Customisation, Functionality, Information | 1 Comment
Tags: , , , , , , ,

This script will enable the users to view the resource calendar exceptions for a particular resource. The script can be downloaded from the script gallery below:

https://gallery.technet.microsoft.com/Online-Server-View-20760922

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

This example script does use the /ProjectServer REST API, so users will need access to that for this to work.

Once the script is downloaded, upload this to the PWA site collection, in this example it was uploaded to the shared documents library. Choose where you want the script to be accessed, in this example I created a new page, added a content editor web part on the new page then referenced the uploaded script using the content editor web part:

image

Once loaded, the page will look like this:

image

If no exceptions are found the table will display “No data available in table”, change the select menu to another resource that does have exceptions in the resource calendar and these will be displayed:

image

This only uses intrinsic fields so should work for any Project Online / Project Server environment but do test it thoroughly first. You might want to improve the error handling etc. before deploying to a production environment. Also remember this does require the user to have access to view resources via the /ProjectServer REST API for this to work.

The script is provided "As is" with no warranties etc.

Advertisements

1 Comment »

RSS feed for comments on this post. TrackBack URI


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

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

Twitter picture

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

Facebook photo

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

Google+ photo

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

Connecting to %s

Blog at WordPress.com.
Entries and comments feeds.

%d bloggers like this: