PLEASE HELP ---- Task.addSubtask is not working
PLEASE HELP ---- Task.addSubtask is not working
Hi everyone,
i am using v0.9.11 and I can´t show a Gantt-Chart where the timeline is with breaks. I am trying to add a Subtask to a Task but it´s not shown.
Here´s some of my code:
TaskSeries t = new TaskSeries("Brutto");
Task task1 = new Task ("task1", new SimpleTimePeriod(new Date(100590207),new Date(200390107)));
Task tasksub1 = new Task("task1", new SimpleTimePeriod(new Date(300390107),new Date(990390107)));
task1.addSubtask(tasksub1);
t.add (task1);
It´s not working. Is someone having a hint for me? So please help ...
Best Regards,
Wiesi
i am using v0.9.11 and I can´t show a Gantt-Chart where the timeline is with breaks. I am trying to add a Subtask to a Task but it´s not shown.
Here´s some of my code:
TaskSeries t = new TaskSeries("Brutto");
Task task1 = new Task ("task1", new SimpleTimePeriod(new Date(100590207),new Date(200390107)));
Task tasksub1 = new Task("task1", new SimpleTimePeriod(new Date(300390107),new Date(990390107)));
task1.addSubtask(tasksub1);
t.add (task1);
It´s not working. Is someone having a hint for me? So please help ...
Best Regards,
Wiesi
Hi again Dams,
it´s still not working. Just the subtask is now shown ....
Maybe you can see the errors in my code, I´ve ran it with 0.9.8, 0.9.9 and 0.9.11:
Thanks in advance
Wiesi
it´s still not working. Just the subtask is now shown ....
Maybe you can see the errors in my code, I´ve ran it with 0.9.8, 0.9.9 and 0.9.11:
TaskSeries t = new TaskSeries("Brutto");
TaskSeries t2 = new TaskSeries("Netto");
Task task1 = new Task ("task1", new SimpleTimePeriod(new Date(5000),new Date(9000)));
Task task2 = new Task ("task1", new SimpleTimePeriod(new Date(12000),new Date(17000)));
task1.addSubtask (new Task("", new SimpleTimePeriod(new Date(11000),new Date(15000))));
task2.addSubtask (new Task("", new SimpleTimePeriod(new Date(19000),new Date(21000))));
t.add (task1);
t2.add (task2);
TaskSeriesCollection mydataset = new TaskSeriesCollection();
mydataset.add(t);
mydataset.add(t2);
Thanks in advance
Wiesi
Try giving each subtask a different description
I seem to remember encountering this before, and applying different names to the task and each of the subtasks got around the issue.