Add a Calenadar View with colors to a SharePoint 2010 Task List synchronized with Microsoft Project Professional 2010 file

Add a Calenadar View with colors to a SharePoint 2010 Task List synchronized with Microsoft Project Professional 2010 file

In this moment I presume: There is already a project file (mpp) synchronized with a SharePoint 2010 task list.
To add a Calendar View with colors the steps are:
1. Create custom field Category in the project file
1
Apply those values on the tasks in the mpp file.

2. Add the field in the “Manage Fields” and sync the project file
2
3. Check the Task List, there should be a new column Category
3
4. Create a new calculated column CategoryTitle
4
5. Create a Calendar View
5
6. Edit the TeamCalendar.aspx and apply the script – choose one of those approaches
6.1 Add Content Editor webpart ( The dropdown which is changing the View is missing .)
6.2 Add the script with SharePoint designer ( No strange behavior )
For more info see this blog: http://techtrainingnotes.blogspot.be/2010/06/sharepoint-2010-color-coded-calendars.html

Full script can be found here: https://nikolayvassilev.files.wordpress.com/2013/10/script.pdf

function GetColourCodeFromCategory(category) {

var colour = null;
switch (category.trim().toLowerCase()) {

case ‘operational’:
colour = ‘#4FB8DB’;
break;
case ‘holiday’:
colour = “#F55875”;
break;
case ‘training’:
colour = “#E0F558”;
break;

}
return colour;

}

7. The end result following the approach 6.1 is:
6
Some blogs which I have used:
http://www.wiseowl.co.uk/blog/s151/custom_fields_in_microsoft_project_pt1.htm
http://ratikantas.blogspot.be/2012/10/sharepoint-2010-colour-calendar.html
http://techtrainingnotes.blogspot.be/2010/06/sharepoint-2010-color-coded-calendars.html

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