
Adding Predecessor information in Gantt view
From the better late than never department. Here is the info on using the
SuccessorBinding property. It comes directly from Microsoft.
The following info was received directly from Microsoft. It applies to
versions P10 and P11. Do not know how far back it goes.
In the grid control there is a property labeled SuccessorBinding. Note that
all references are to successor data. There is no reverse property
PredecessorBinding.
From Microsoft:
"You'll need to create an ADO recordset with the following fields and pass
it to SuccessorBinding.
TaskUniqueID - ID of task
SuccessorTaskUniqueID - ID of the successor task
SuccessorType - Link type:
Finish to Finish = 0
Finish to Start = 1
Strat to Finish = 2
Start to Start = 3
The main recordset (one that is passed to Binding property) will also need
to contain a field called "TaskUniqueID" with values that match the ID's in
the SuccessorBinding recordset. Please note that the column names for the
links table are essential, as is using TaskUniqueID in the Assignments
table, it's what links everything together. "
Hope this helps. With this info we were able to get it working without any
additional problems.
Quote:
> Jack,
> Sure thing. I'll try to get it to you later this week. If I forget please
> don't hesitate to remind me.
> Bob
> > Bob,
> > Can you share any of this information or a snippet of code? I could put
a
> > page together on my web site with it and proper attribution to you if
you
> > have the time to post it.
> > -Jack
> > > Mark,
> > > What we are doing is taking the pjgrid2.ocx as a standalone and
> > > programatically feeding it data from a non MSP data source. Works fine
> but
> > > could not get the predecessor/successor to work until I found out how
> the
> > > successorbinding property worked. MS has a knowledgebase article
> entitiled
> > > "Using Microsoft Project Central Controls with Another Data Source".
> > > Unfortunately it predates P10 so it doesn't have some of the newer
> > > properties explained such as successor binding, but it does explain
the
> > > basic get/set operations you would need to pull the data.
> > > Am now working on critical path display. Hope this helps...
> > > Bob
> > >> Bob, thanks for passing this along. I am curious. Are you creating
your
> > >> own Gantt charts? I have a Graphic I've wanted to create using
> > >> Project's Gantt Chart Engine
> > >> What can you tell me?
> > >> Thanks,
> > >> Mark