I am using Dhtmlx Gantt to make the Gantt chart in my project. IN the tasks table I have the usual autoincremental Id. Whenever I save a task it gets the Id automatically, (this id is not the same as the source Id that is provided by the gantt chart plugin). The problem is when I try to create a link between a task and another task that is created on the fly(without refreshing the page), because the targetId of the Link object comes same as the SourceId and not the actual Id of the task in my table in db. Anyone have an Idea how to fix this?
Thanx in advance