PWA 2007 : how to display Work in days?

R

Robert

Hello,

How is it possible to display the Work columns in PWA (Project Center view,
Project views...) in man-days instead of hours?
Thanks for your help.
 
R

Robert

Sorry, don't worry,
I found Dale's response on a post some hours before.
It's not possible ;-(
 
P

Patrizio

There's a way to show the work in days.
You have to add a Content Editor webpart
(look at http://www.projectserverhelp.com/Lists/Posts/Post.aspx?ID=7 )
and then add the following code:
(look at http://projectservertips.blogspot.com/ actually in italian language)

<span> </span>

<input id="idWorkButton" type="checkbox" onclick="WorkButton_OnClick()" >
Show Work in Days</input>


<SCRIPT language=jscript>

function WorkButton_OnClick()
{
var PJGridID = GetPJGridID();
var MSPJGrid = document.getElementById(PJGridID);
var RadioButton = document.getElementById('idWorkButton');

if (RadioButton.checked)
{
MSPJGrid.TextConv.SetTimeProps(3);
MSPJGrid.Refresh();
}
else
{
MSPJGrid.TextConv.SetTimeProps(2);
MSPJGrid.Refresh();
}
}

function GetPJGridID()
{
var divs = document.getElementsByTagName('div');

for (idx in divs)
{
if (Right(divs[idx].id, 19) == '_MSPJGrid_Container')
{
var MSPJGrid = divs[idx].id;
MSPJGrid = MSPJGrid.replace("_MSPJGrid_Container", "_MSPJGrid");
return String(MSPJGrid);
}
}
return "";
}

function Left(str, n){
if (n <= 0)
return "";
else if (n > String(str).length)
return str;
else
return String(str).substring(0,n);
}
function Right(str, n){
if (n <= 0)
return "";
else if (n > String(str).length)
return str;
else {
var iLen = String(str).length;
return String(str).substring(iLen, iLen - n);
}
}


</SCRIPT>
 
R

Robert

Thanks a lot Patrizio,
I'll work on that
Robert


Patrizio said:
There's a way to show the work in days.
You have to add a Content Editor webpart
(look at http://www.projectserverhelp.com/Lists/Posts/Post.aspx?ID=7 )
and then add the following code:
(look at http://projectservertips.blogspot.com/ actually in italian
language)

<span> </span>

<input id="idWorkButton" type="checkbox" onclick="WorkButton_OnClick()" >
Show Work in Days</input>


<SCRIPT language=jscript>

function WorkButton_OnClick()
{
var PJGridID = GetPJGridID();
var MSPJGrid = document.getElementById(PJGridID);
var RadioButton = document.getElementById('idWorkButton');

if (RadioButton.checked)
{
MSPJGrid.TextConv.SetTimeProps(3);
MSPJGrid.Refresh();
}
else
{
MSPJGrid.TextConv.SetTimeProps(2);
MSPJGrid.Refresh();
}
}

function GetPJGridID()
{
var divs = document.getElementsByTagName('div');

for (idx in divs)
{
if (Right(divs[idx].id, 19) == '_MSPJGrid_Container')
{
var MSPJGrid = divs[idx].id;
MSPJGrid = MSPJGrid.replace("_MSPJGrid_Container", "_MSPJGrid");
return String(MSPJGrid);
}
}
return "";
}

function Left(str, n){
if (n <= 0)
return "";
else if (n > String(str).length)
return str;
else
return String(str).substring(0,n);
}
function Right(str, n){
if (n <= 0)
return "";
else if (n > String(str).length)
return str;
else {
var iLen = String(str).length;
return String(str).substring(iLen, iLen - n);
}
}


</SCRIPT>

----------------

Robert said:
Sorry, don't worry,
I found Dale's response on a post some hours before.
It's not possible ;-(
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top