We are having a serious issue when it comes to organizing the Gantt Task
Indeed, the Gantt Task can be resequenced by dragging the task from the Grid part before or after other.
Then WBS number is changed accordingly. so far so good.
As we have a listener on the "TaskStore" in order to capture every single change that is broadcasted in a database :
gantt.taskStore.on({
change : this.myGanttTaskStoreChange,
})
Have a glance at our screenshot.
- The first one is an event "Remove"
The second one is an event "Add"
As a matter of fact, if dragging one task leads to get 2 events: "Remove" and "Add";
thus, how it is possible to distinguish an event which is simply deleted or added?
With that process "Remove" and "Add", the task would be deleted from the database, with all its dependencies... and then afterward created !!! This does not make sense at all.
Secondly, would not it be wiser to change only the 'index' or 'WBS', instead of having 2 events "Remove" & "Add"
Indeed, dragging a task from the grid would have as outcome an event "update" that is fired with only the index or WBS number updated accordingly.
Any suggestion to overcome that issue?