This is a migrated thread and some comments may be shown as answers.

Gantt Dependency links to the end of the Task

1 Answer 9 Views
Gantt
This is a migrated thread and some comments may be shown as answers.
Steve
Top achievements
Rank 1
Veteran
Steve asked on 11 Mar 2021, 02:21 PM

When dragging from the end of a task (on the right side white dot) to the start of the second task (left side on the white dot) the dependency links to the right side of the second task.

Code image attached has nothing crazy going on, Img1 and Img2 show the dependency link and the Data is written to the database.

 

Can't work out why it's doing this, any ideas?

 

Steve

1 Answer, 1 is accepted

Sort by
0
Steve
Top achievements
Rank 1
Veteran
answered on 12 Mar 2021, 09:13 AM

This is my bad, when writing back to the web service I hadn't set the Type correctly.

            objPlannerDependency = New PlannerDependencyList
            objPlannerDependency.Predecessor_ID = item.PredecessorID
            objPlannerDependency.Successor_ID = item.SuccessorID
            objPlannerDependency.Type = item.Type
            objPlannerDependency.TypeSpecified = True

Working perfectly now

Tags
Gantt
Asked by
Steve
Top achievements
Rank 1
Veteran
Answers by
Steve
Top achievements
Rank 1
Veteran
Share this question
or