E
Esfer
Hi
I'm trying to change remaining work and notes in a task but I'm having
several problems.
The first is that field "TASK_NOTES" is read only so I can't change its
content.
Anyway I've tried to change "TASK_REM_WORK" and it seems to work fine but
with no effects :-(. I mean I can change its value but changes doesn't
persist.
I tried to update the project data after changing that task row but it
doesn't work (Exception is thrown).
My code is here:
--------------------
taskRow = projectDS.Task.FindByTASK_UIDPROJ_UID(task.ProjectServerTaskGuid,
task.ProjectServerProjectGuid);
taskRow["TASK_REM_WORK"] = task.Remaining * 60000;
projectDS.AcceptChanges();
//taskRow["TASK_NOTES"] = task.Note;
taskRow.AcceptChanges();
projectWS.QueueUpdateProject(Guid.NewGuid(), Guid.NewGuid(),
projectDS, false);
--------------------
The last line is the one throwing the exception, even if I don't change
anything before the call... The PSIClientError sais it is a "ErrorIndex" but
I have no more information...
Any ideas? Thanks in advance ;-)
I'm trying to change remaining work and notes in a task but I'm having
several problems.
The first is that field "TASK_NOTES" is read only so I can't change its
content.
Anyway I've tried to change "TASK_REM_WORK" and it seems to work fine but
with no effects :-(. I mean I can change its value but changes doesn't
persist.
I tried to update the project data after changing that task row but it
doesn't work (Exception is thrown).
My code is here:
--------------------
taskRow = projectDS.Task.FindByTASK_UIDPROJ_UID(task.ProjectServerTaskGuid,
task.ProjectServerProjectGuid);
taskRow["TASK_REM_WORK"] = task.Remaining * 60000;
projectDS.AcceptChanges();
//taskRow["TASK_NOTES"] = task.Note;
taskRow.AcceptChanges();
projectWS.QueueUpdateProject(Guid.NewGuid(), Guid.NewGuid(),
projectDS, false);
--------------------
The last line is the one throwing the exception, even if I don't change
anything before the call... The PSIClientError sais it is a "ErrorIndex" but
I have no more information...
Any ideas? Thanks in advance ;-)