Edit actualWork using changeXML but the actual work doesn't changed. Why?

D

Danny Raharja

Dear all,

I'm currently trying to edit an actual work value from an assignment. I
managed to edit the actual work value (hour) only if the new value is bigger
than previous value. If I change the value become smaller than the previous
one, the actual work doesn't change. What the problem is? Did I took a wrong
procedure to change the actual work?

Below is my code to change the actual work.

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

changeXml.AppendFormat("<Changes><Proj ID=\"{0}\">", projectUid.ToString());

changeXml.AppendFormat("<Assn ID=\"{0}\">", assn.ToString());

changeXml.AppendFormat("<PeriodChange PID=\"{0}\" Start= \"{2}\"
End=\"{3}\">{1}</PeriodChange>",

"251658246", 6 * 10000 * hour, startDate.ToString("s"),
endDate.ToString("s"));

changeXml.AppendFormat("<PeriodChange PID=\"{0}\" Start= \"{2}\"
End=\"{3}\">{1}</PeriodChange>",

"251658250", 6 * 10000 * hour, startDate.ToString("s"),
endDate.ToString("s"));

changeXml.Append("</Assn></Proj></Changes>");

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



Regards,
Danny
 
D

Danny Raharja

Hi Stephen,

Thanks for asking. I am using below code to update and submit my assignment.


statusingSvc.UpdateStatus(changeXml.ToString());

statusingSvc.SubmitStatus(new Guid[] { assn }, "Updated actual work");



Regards,

Danny Raharja
 
D

Danny Raharja

Does anyone know what the problem is? need some help here.

thanks before,
Danny Raharja


Danny Raharja said:
Hi Stephen,

Thanks for asking. I am using below code to update and submit my
assignment.


statusingSvc.UpdateStatus(changeXml.ToString());

statusingSvc.SubmitStatus(new Guid[] { assn }, "Updated actual work");



Regards,

Danny Raharja



Stephen Sanderlin said:
What method are you using to submit this changexml?

--
Stephen Sanderlin
VP of Technology
MSProjectExperts

For Project Server Consulting: http://www.msprojectexperts.com
For Project Server Training: http://www.projectservertraining.com

Read my blog at: http://www.projectserverhelp.com
Join the community at: http://forums.epmfaq.com
 
S

Stephen Sanderlin [MVP]

Your ChangeXML looks right, as does your code. Are you maybe not
approving the status update? Do changes submitted through your utility
show up in the history for the assignment?

--
Stephen Sanderlin, Project MVP
VP of Technology
MSProjectExperts

For Project Server Consulting: http://www.msprojectexperts.com
For Project Server Training: http://www.projectservertraining.com

Read our blog at: http://www.projectserverhelp.com

Learn | Connect | Grow @ The Microsoft Project Conference
Phoenix, AZ R September 14-17, 2009



Does anyone know what the problem is? need some help here.

thanks before,
Danny Raharja


Hi Stephen,

Thanks for asking. I am using below code to update and submit my
assignment.


statusingSvc.UpdateStatus(changeXml.ToString());

statusingSvc.SubmitStatus(new Guid[] { assn }, "Updated actual work");



Regards,

Danny Raharja



"Stephen Sanderlin" <nospam> wrote in message
What method are you using to submit this changexml?

--
Stephen Sanderlin
VP of Technology
MSProjectExperts

For Project Server Consulting: http://www.msprojectexperts.com
For Project Server Training: http://www.projectservertraining.com

Read my blog at: http://www.projectserverhelp.com
Join the community at: http://forums.epmfaq.com




Dear all,

I'm currently trying to edit an actual work value from an assignment. I
managed to edit the actual work value (hour) only if the new value is
bigger
than previous value. If I change the value become smaller than the
previous
one, the actual work doesn't change. What the problem is? Did I took a
wrong
procedure to change the actual work?

Below is my code to change the actual work.

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

changeXml.AppendFormat("<Changes><Proj ID=\"{0}\">",
projectUid.ToString());

changeXml.AppendFormat("<Assn ID=\"{0}\">", assn.ToString());

changeXml.AppendFormat("<PeriodChange PID=\"{0}\" Start= \"{2}\"
End=\"{3}\">{1}</PeriodChange>",

"251658246", 6 * 10000 * hour, startDate.ToString("s"),
endDate.ToString("s"));

changeXml.AppendFormat("<PeriodChange PID=\"{0}\" Start= \"{2}\"
End=\"{3}\">{1}</PeriodChange>",

"251658250", 6 * 10000 * hour, startDate.ToString("s"),
endDate.ToString("s"));

changeXml.Append("</Assn></Proj></Changes>");

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



Regards,
Danny
 

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