Problem with gantt.updateTask(id_proj);

Hi.
I want to update the progress in a project when I modify a progress in a task.
My problem is the project’s progress in calculated but does not update in the server side.

I do:
gantt.attachEvent(“onBeforeTaskUpdate”, function(id,new_item){
gantt.getTask(id_father).progress = progress_father; //changes task’s data
gantt.updateTask(id_father);
});

When run the last instruction: gantt.updateTask(id_father);
the code break and give me a error: (undefined) in the right side on top

Thanks :wink:


Hi,
how do you get the ‘id_father’ and ‘progress_father’ variables?
Is it possible that on the one of iterations you pass an undefined id to the gantt.updateTask ?