Hi Team,
Do we have all dependency errors listed somewhere or any document link, please?
Eg., "Invalid Dependency"
Thanks,
Shashank
Hatch Digital
Hi Shashank,
We do not have listed the errors anywhere in our docs. But we do have a validateDependency
method on engine level that checks the dependency validity and results in following three cases:
switch (validationResult) {
const DependencyValidationResult.CyclicDependency :
console.log('Dependency builds a cycle');
break;
const DependencyValidationResult.DuplicatingDependency :
console.log('Such dependency already exists');
break;
const DependencyValidationResult.NoError :
console.log('Dependency is valid');
}
See this method documented here: https://bryntum.com/products/gantt/docs/engine/classes/_lib_engine_quark_model_gantt_ganttprojectmixin_.ganttprojectmixin.html#validatedependency
This will results into two possible errors listed here: https://bryntum.com/products/gantt/docs/engine/enums/_lib_engine_scheduling_types_.dependencyvalidationresult.html.
I hope this helps.
Regards,
Ghous