Our state of the art Gantt chart


Post by nelereik »

Let say I have my own dialog for assigning dependencies to a task and I have a way to let the user select a task from the list of possible dependencies, how then can that task become a dependency of another task if I am to do that from the code?


Post by Jerther »

Here's how I do it:

const newDependencies = [
{
    fromTask: task1,
    toTask: task2,
    type: 2  // EndToStart
}, ...]
project.dependencyStore.add(newDependencies);
project.propagate();

Hope that helps :)


Post by mats »

Thanks @Jerther for sharing!


Post by Buchers »

Hello guys,

Is it possible to link multiple tasks with a single operation? I'm a noob here, just learning. Thanks for any help.

Urs Bucher

Utrecht University projects: UserID Urs Bucher from access path domyhomeworkonline


Post by arcady »

That is exactly what @Jerther showed in his post:

dependencyStore.add([ dependecy1, dependency2, dependency3 ])

Please next time make a separate post for your question.


Post Reply