Programmatically Insert a Subproject

M

Marc

(also posted to microsoft.public.project.developer)

We're using Project Server 2007, and it's been requested to have a
"Project Wizard" that will be used to create a master project and
then
subprojects for this master project based on the user's selections --
basically, they just select the products they want to create a
project
for, and the wizard creates the master project and subprojects for
each selected product, and then inserts them into the master project.
In theory! :)

I have it doing essentially everything except inserting the
subprojects into the master project. When the master project is
opened in Project Pro, the subprojects have successfully been
inserted
as tasks, but that's all they are, they don't link to the subproject
itself. The following looks to be correct so far:


- The PROJ_TYPE is set correctly for the master (6) and subprojects
(5).
- The tasks' rows in MSP_TASKS do reference the subprojects' GUIDs
and
"first" task GUIDs.
- The subprojects and master project are setup in the
MSP_PROJ_HIERARCHIES table.


I can't find any other relationships I need to setup, but am sure I'm
missing something.


I've been comparing against another master/subproject set that was
created from MS Project Pro 2007 and published out to Project Server,
and don't see any differences yet between the Project Pro-created
ones
and the ones I'm building programmatically, yet when I open the
programmatically-created master project in Project Pro, the
subprojects are listed just as tasks.


Any ideas? I know what I'm doing is unsupported :)


Thanks!


Marc
 
R

Ran @Comverse

Hi,

We also found this bug, and that's why we don't use Masters anymore.
We open a request for Microsoft to get a hotfix but no didn't get any answer
so far.

Ran.
 

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