is there any documentation about how to use dependencies nid without casetracker. I made milestone content type, and each milestone can pick another milestone for its dependencies from node reference field. In view i can call refferenced nid, and what i want to ask is, can i use the refferenced nid to fill the Depends on ID field?

CommentFileSizeAuthor
#3 jsgantt-with-dependencies-1157752-3.patch2.34 KBAnonymous (not verified)

Comments

danepowell’s picture

Sorry, I haven't used jsGantt view in a while, but IIRC, support for dependencies is broken in jsgantt (the upstream library)

Anonymous’s picture

Hi,

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?

Anonymous’s picture

Status: Active » Needs review
StatusFileSize
new2.34 KB

Tried 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.