Cross project dependency in master project

P

prem1234

I am working on a MS Project addin.


We use "PredecessorTasks" collection on Task object to get the
details of the predecessor tasks of a task. This works fine when the
project is a simple project. In case of a project which has a
subproject inserted in it, if a task in master project has a
predecessor task in inserted project, the collection does not show
that predecessor. However the "TaskDependencies" collection on the
task shows the dependency. But the issue is if we inspect the
attributes of corresponding "TaskDependencies.Item(i).From", none of
them(ID, UniqueID)except "Name" match with that of predecessor task.
Is there any attribute (other than "name") on a task's
"TaskDependencies.Item(i).From" that can be used to get the
corresponding predecessor Task object in Tasks collection of
subproject (ie. An attribute that will be always same on
TaskDependencies.Item(i).From and corresponding Tasks.Item(j) so that
I can relate these two)?


Thanks in advance,
 
J

John

prem1234 said:
I am working on a MS Project addin.


We use "PredecessorTasks" collection on Task object to get the
details of the predecessor tasks of a task. This works fine when the
project is a simple project. In case of a project which has a
subproject inserted in it, if a task in master project has a
predecessor task in inserted project, the collection does not show
that predecessor. However the "TaskDependencies" collection on the
task shows the dependency. But the issue is if we inspect the
attributes of corresponding "TaskDependencies.Item(i).From", none of
them(ID, UniqueID)except "Name" match with that of predecessor task.
Is there any attribute (other than "name") on a task's
"TaskDependencies.Item(i).From" that can be used to get the
corresponding predecessor Task object in Tasks collection of
subproject (ie. An attribute that will be always same on
TaskDependencies.Item(i).From and corresponding Tasks.Item(j) so that
I can relate these two)?


Thanks in advance,

Note to others,
I answered this post in the main newsgroup. Before replying, you might
check my response there and then If you have something to add, feel free.

John
Project MVP
 
M

Mark

And the link to this is...

John said:
Note to others,
I answered this post in the main newsgroup. Before replying, you might
check my response there and then If you have something to add, feel free.

John
Project MVP
 
J

John

Mark said:
Hi John,

Please could you provide the link to this answer.

Thanks
Mark,
The "main newsgroup" I referred to is: microsoft.public.project.

But rather than make you search for it, here was my response in the main
newsgroup to prem1234's post there.

"prem1234,
As far as I know, yes - I've never tried it. Since what you see in a
displayed view is simply a formatted presentation of what is in
Project's underlying database, I have to believe that the data is stored
in a given order. Regardless of what method you use to decode that data,
it will be taken from the order in which it is stored. Boy, how's that
for some techie talk :)"

John
Project MVP
 

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