Hi,
currently the only way to achieve this is initializing gantt links connector explicitly and adding ‘WHERE’ clause to the select query:
e.g.
[code]$gantt = new JSONGanttConnector($res, $dbtype);
$links = new JSONGanttLinksConnector($res, $dbtype);
$links->render_sql("SELECT id, source, target, type, project_id FROM gantt_links WHERE project_id = ". $res->quote($projectId), “id”, “source,target,type,project_id”);
$gantt->set_options(“links”, $links);
$gantt->render_table(“gantt_tasks”,“id”,“start_date,duration,text,progress,type, parent,level,project_id”);[/code] It should work for both reading and saving links to the db
Get a guaranteed answer from DHTMLX technical support team
under the most suitable support plan