J
J.A. García Barceló
Is there any way to update PROJ_INFO_START_DATE from
ProjectWebSvc.ProjectDataSet.ProjectRow class (Project Server 2007, custom
app done in C# using PSI) once the project is already published?
According to
http://msdn2.microsoft.com/en-us/li...tdataset.projectrow.proj_info_start_date.aspx
this property is readable/writable but I cannot manage to update it in my
sample project, once it has tasks defined and published. However, it can be
done through Project Professional 2007 and all tasks are moved along to the
new starting date correctly.
All samples that I have found that use PROJ_INFO_START_DATE set it during
the definition of the project (new project) but my case is that I need to
update it once the project is already defined and published.
[C#]
....
projectRow.PROJ_INFO_START_DATE = newDate;
projectRow.AcceptChanges();
projectSvc.QueueUpdateProject(jobId, sessionId, dsProject, false);
WaitForQueue(q, jobId);
// This piece of code does not throw any exception but does not seem to
update anything either
// When the project is reopened using Project Professional, it still has the
old date
jobId = Guid.NewGuid();
projectSvc.QueuePublish(jobId, projectUid, false, String.Empty);
WaitForQueue(q, jobId);
// I have also tried to republish the project after the update, but it makes
no difference
// The start date is still the old one
Any ideas? Thanks in advance and regards.
ProjectWebSvc.ProjectDataSet.ProjectRow class (Project Server 2007, custom
app done in C# using PSI) once the project is already published?
According to
http://msdn2.microsoft.com/en-us/li...tdataset.projectrow.proj_info_start_date.aspx
this property is readable/writable but I cannot manage to update it in my
sample project, once it has tasks defined and published. However, it can be
done through Project Professional 2007 and all tasks are moved along to the
new starting date correctly.
All samples that I have found that use PROJ_INFO_START_DATE set it during
the definition of the project (new project) but my case is that I need to
update it once the project is already defined and published.
[C#]
....
projectRow.PROJ_INFO_START_DATE = newDate;
projectRow.AcceptChanges();
projectSvc.QueueUpdateProject(jobId, sessionId, dsProject, false);
WaitForQueue(q, jobId);
// This piece of code does not throw any exception but does not seem to
update anything either
// When the project is reopened using Project Professional, it still has the
old date
jobId = Guid.NewGuid();
projectSvc.QueuePublish(jobId, projectUid, false, String.Empty);
WaitForQueue(q, jobId);
// I have also tried to republish the project after the update, but it makes
no difference
// The start date is still the old one
Any ideas? Thanks in advance and regards.