hello,
I would like filter my project to show only one project on my gantt timeline but I don’t know where put clause" WHERE id=x" in $gantt->render_table(“gantt_tasks”,“id”,“start_date,duration,text,progress,sortorder,priority,owner,parent”,"");
hello,
I would like filter my project to show only one project on my gantt timeline but I don’t know where put clause" WHERE id=x" in $gantt->render_table(“gantt_tasks”,“id”,“start_date,duration,text,progress,sortorder,priority,owner,parent”,"");
Hi,
That’s not how you do it. You filter what to show using the onBeforeTaskDisplay event.
Here’s the relevant sample:
docs.dhtmlx.com/gantt/samples/07 … ering.html
And the API documentation:
docs.dhtmlx.com/gantt/api__gantt … event.html
I can really recommend going through all the samples and try to understand what they do. Don’t forget to check the source of the sample web page to see how it was done “behind the scenes”.
Best,
Fred S