Needs review
Project:
jsGantt View
Version:
6.x-1.x-dev
Component:
Documentation
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
14 May 2011 at 18:21 UTC
Updated:
28 Sep 2011 at 19:16 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
danepowell commentedSorry, I haven't used jsGantt view in a while, but IIRC, support for dependencies is broken in jsgantt (the upstream library)
Comment #2
Anonymous (not verified) commentedHi,
jsGantt dependencies seem to be working fine on their site:
http://www.jsgantt.com/#tBugs (scroll the chart to the right a bit)
How to get dependencies working? I'm using the OA CT Plus feature with built-in jsGantt Views support. Out of the box, it didn't set dependencies. So I edited the ct_plus_tasks View display for jsGantt, added the Dependencies as a Relationship, and configured the jsGantt style to set Dependencies.
This gives:
warning: implode() [function.implode]: Invalid arguments passed in C:\Inetpub\wwwroot\morningtime.com-openatrium\sites\all\modules\contrib\views_jsgantt\views-view-views-jsgantt.tpl.php on line 93.Any ideas to make it work?
Comment #3
Anonymous (not verified) commentedTried a different approach, just added the Dependencies field and configured the style for it.
But I had to adapt the views-view-views.jsgantt.tpl.php file.
- The dependson values cannot be retrieved directly (do not exist) nor through render_field(), but though a complex $view->field[etc...] action
- The optional pDepend value may not be empty, e.g. "0" breaks javascript,
- The pDepend list "1,12,23" should be between double quotes ", not single quotes '
See the patch attached for a working tpl file with dependencies. It works, but it may need improvement.