Skip to main content

Project Server Help Blog

Go Search
Project Server Help Blog
Project Server Experts Community
MSProjectExperts
Training Schedule
Contact Us
  

Project Server Help Blog > Posts > Hacking Project Server 2007 Timesheets -- Hiding Planned Work Rows
 

 MS Project and Project Server Resources

 
Hacking Project Server 2007 Timesheets -- Hiding Planned Work Rows

 

I'd like to start by thanking Marc Stoester for pointing out that the planned work rows on Project Server 2007 timesheets can be hidden with a little CSS (Cascading StyleSheets) trickery:

http://marcsoester.blogspot.com/2008/06/make-planned-work-disapear-in.html

However, I'd now like to demonstrate an even easier way to accomplish the same result... by simply adding a little SharePoint web part to the 'My Timesheet' page in PWA.

If you're not familiar with manipulating SharePoint pages with web parts, see my primer on the topic ('Hacking PWA with Web Parts') here:

http://www.projectserverhelp.com/Lists/Posts/Post.aspx?ID=7

 

Overview

For some people, navigating through a Project Server timesheet and locating the correct destination cells for data entry can be a bit cumbersome, and since we want to make this process as easy as humanly possible for compliance, simplifying the timesheet interface can be quite helpful. One way to clean up the timesheet interface is by hiding the 'Planned' row for each task.

Note: before hiding the 'Planned' row s in the Project Server timesheet interface, I recommend polling your Team Members to determine if that row is actually of some use to them. If so, then you may not want to follow this procedure.

Note: this procedure will hide the 'Planned' timesheet rows for ALL Project Server users.

 

Hiding the 'Planned' Timesheet Rows

Follow these steps to hide the 'Planned' rows in Project Server 2007 timesheets:

1. Visit the 'My Timesheets' page in PWA, select any timesheet (regardless of state), then click on the link in the first column to open the timesheet:

 

2. On the 'My Timesheet' page, pull open the 'Site Actions' menu near the upper right corner of the page, then select the 'Edit Page' option:

 

 

3. With the 'My Timesheet' page in edit mode, click the 'Add a Web Part' button, which spans the entire width of the 'Main' web part zone:

 

 

4. In the 'Add Web Parts to Main' dialog box, select the checkbox next to the 'Content Editor Web Part' item, then click the 'OK' button:

 

5. After the 'Content Editor Web Part' has been added to the page, pull open the 'edit' menu near the upper right corner of the newly-added web part, then select the 'Modify Shared Web Part' option:

 

 

6. In the 'Content Editor Web Part' editing panel which has opened on the right side of the page, click the 'Source Editor...' button:

 

 

7. In the source editor dialog box, enter the following text, then click the 'Save' button:

<style type="text/css">

.XmlGridPlannedWork {display:none;}

</style>

 

8. In the 'Content Editor Web Part' editing panel which should still be open on the right side of the page, expand the 'Appearance' heading by clicking [+], then enter 'Hide Planned Work Rows' as the 'Title' of the web part:

 

 

9. In the 'Content Editor Web Part' editing panel which should still be open on the right side of the page, select 'None' for the 'Chrome Type' of the web part, then click the 'OK' button at the bottom of the panel:

 

 

10. After the 'Content Editor Web Part' editing panel is closed, hover the mouse cursor over the header of the 'My Timesheet' web part until the 4-way cursor is displayed, click and drag the header until it is positioned above the new 'Hide Planned Work Hours' web part header (as indicated by the colored 'I-beam'), then drop the web part into the upper position in the web part zone:

 

 

The 'Hide Planned Work Hours' web part will now appear below the 'My Timesheet' web part on the page:

 

11. Exit 'edit mode' by clicking the 'Exit Edit Mode' link near the upper right corner of the page:

 

As you can now see, the timesheet interface is a bit less confusing for data entry because there are fewer rows, and therefore fewer places to possibly enter actual work data.

 

In Summary...

No Server Access Required, and No Custom Coding Required

As long as you have the permission to edit PWA pages, you can perform this hack, regardless of whether you have direct access to the server. This will work in hosted environments (such as ProjectHosts) as well!

Be Careful!

Remember... this hack affects all users and all timesheets, so be sure that there isn't anyone who will miss the 'Planned' row on the Project Server timesheet interface.

To unhide the 'Planned' row, simply delete the 'Hide Planned Work Rows' web part from the page. To learn how this is done, review my PWA web parts primer ('Hacking PWA with Web Parts') here:

http://www.projectserverhelp.com/Lists/Posts/Post.aspx?ID=7

Happy hacking!

Comments

Great approach will certainly try this one out

That is very good Tony. I will try this out
at 8/4/2008 11:36 PM

Excellent!

Was able to do this in about 2 seconds with your instructions!  Thank you. 

Still doesn't fix the problem of actual task time getting mucked up by Custom Admin buckets....that is what I was looking for when I found this!
at 9/22/2008 12:08 PM

Worked a treat!

We could not get Marc's original CSS fix to work in our environment for some reason.  Our user group was pretty vocal about this being a usability issue for them, and it appears to have resolved the problem in a quick and easy manner...thanks!
at 1/6/2009 5:25 PM

Excellent

Tried and tested, works no problems and resulted in some happy users.

Thanks
at 2/10/2009 5:38 AM

Is it possible to remove planned work from the timesheet approval

Thanks for this information we would like also to remove the planned work from the Timesheet Approval screen - do you know if this same process could work for that view?

Thanks
at 2/17/2009 2:33 PM

My boundaries have been expanded

thank you for this excellent, well documented MS Project Server 2007 Hack.

I have been annoyed by the planned hours for over a year now and hear complaints about it cluttering up the timesheets of over 185 people.

And, I even learned a little something about CSS in regards to MOPS and web parts as well.

Thank you!
at 4/10/2009 3:36 PM

Showing Planned Work row in `My Tasks`view

Hi,
Is there a way to do it?


Thanks!
at 8/3/2009 10:04 AM

Hiding the planned work rows

Saw the article on how to hide the planned work rows. Works fine but is there was a way to remove the planned work rosw from the timesheet print view?
at 3/24/2010 1:55 PM

Remove Planned from Print View

This article removes the planned work from the website view.

Is there anyway to remove the planned work from the print view?
at 3/24/2010 5:39 PM

Add Comment

Spam Test

Unfortunately, spammers have made our lives a bit more annoying.
Please help us take a bite out of spam.

Before submitting a comment, please prove that you are not a spam bot
by using the buttons to enter the number shown below:



          

Items on this list require content approval. Your submission will not appear in public views until approved by someone with proper rights. More information on content approval.

Title


Body *


Commenter Name


Website URL

Type the Web address: (Click here to test)  

Type the description: 

Attachments