Hi,
Wondering if anyone can help get with gantt charts in sc6 please.
From the demo (http://www.scriptcase.net/sistemas/v6/exemplos_en_us/grid_55/grid_55.php) it appears that jsgantt is required to get this working.
I tried to create a template and upload and use this in a new grid (similar to the steps described here: http://www.scriptcase.net/forum_en_us/index.php?topic=1379.0) however it is not working and not sure what I need to change to get it working.
<link rel="stylesheet" type="text/css" href="http://localhost:10088/sc6/jsgantt/jsgantt.css" />
<script language="javascript" src="http://localhost:10088/sc6/jsgantt.js"></script>
<div style="position:relative" class="gantt" id="GanttChartDIV"></div>
<script>
var g = new JSGantt.GanttChart('g',document.getElementById('GanttChartDIV'), 'day');
g.setShowRes(1); // Show/Hide Responsible (0/1)
g.setShowDur(1); // Show/Hide Duration (0/1)
g.setShowComp(1); // Show/Hide % Complete(0/1)
g.setCaptionType('Resource'); // Set to Show Caption
if( g ) {
<!-- BEGIN bl2 -->
g.AddTaskItem(new JSGantt.TaskItem({ScheduleID}, {Products_ProductID}, {ProductionStartDate}, {ProductionEndDate}, "0088CC","", 0, "",{PercentComplete}, 0, 0, 1));
<!-- END bl2 -->
g.Draw();
g.DrawDependencies();
}
else
{
alert("not defined");
}
</script>
I am running SC6 on a mac with Zend Server CE
Any help would be really appreciated!!
Thanks,
Claire