PS2007: Add a new task between two existing tasks

T

Tiffy Huxtable

Hello,

I try to solve programmatically the following job. I have a simple
project plan with two tasks:

"Task 1"
"Task 2"

Now I want to create programmatically a third task with task name
"Task 3" and place this new task in the project plan between the two
existing tasks:

"Task 1"
"Task 3"
"Task 2"

Any hints how I can achieve this programmatically?

For adding new tasks I have to call QueueAddToProject() method, but
how to let the webservice know that my new task has to be placed
between two other tasks in the project plan and not at the end (which
is default)?

TIA and good bye
Tiffy
 
T

Tiffy Huxtable

Thank you, that got me a step ahead.
I am developing a stand alone application in C# and using PSI web
services.
The solution for my problem is similar to the VBA command you
mentioned, it is

ProjectDataSet.TaskRow.AddPosition
and
ProjectDataSet.TaskRow.AddAfterTaskUID

Because of a bug and in order to get it to work with PSI web services
you need to install at least SP1 of Project Server,
see "http://forums.epmfaq.com/project-2007-development/144-psi-add-
task-addpositiontype-middle.html".

Solved :)

Tiffy
 

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