Page 1 of 1

[VUE 3] DATASET GANTT INTEGRATION (DATE AND SUCCESSORS)

Posted: Mon Jan 17, 2022 5:19 pm
by sidyfall

Hi, I'm currently working on integrating GANTT and i wanted to make a simple dataset just to play around the UI but i can't seem to be able to set the start date of tasks and link them to successors or predecessors.
Here's a nippet of my dataset :

Capture d’écran du 2022-01-17 16-17-36.png
Capture d’écran du 2022-01-17 16-17-36.png (75.28 KiB) Viewed 285 times

I'm pretty sure i'm missing something but i can't find out what it is in the doc or examples


Re: [VUE 3] DATASET GANTT INTEGRATION (DATE AND SUCCESSORS)

Posted: Tue Jan 18, 2022 10:29 am
by sidyfall

Full dataset i tried :

config: {
        columns: [
          { field: "surName", text: "Surname", hidden: false },
          { field: "age", text: "Age", align: "right" },
          { field: "city", text: "City", editor: false },
        ],
        startDate: new Date(2020, 0, 14),

    data: [
      {
        id: 1,
        name: "Setup Web Server",
        startDate: "2020-01-14",
        expanded: true,
        duration: 10,
        percentDone: 50,
        children: [
          {
            id: 2,
            name: "Install Apache",
            startDate: "2020-01-14",
            endDate: "2020-01-17",
            duration: 3,
            percentDone: 70,
          },
          {
            id: 3,
            name: "Configure firewall",
            startDate: "2020-01-17",
            endDate: "2020-01-18",
            duration: 1,
            percentDone: 18,
          },
        ],
      },
    ],
  },
 

Re: [VUE 3] DATASET GANTT INTEGRATION (DATE AND SUCCESSORS)

Posted: Tue Jan 18, 2022 1:05 pm
by alex.l

Hi sidyfall,

Please have a look at our examples, you have it in the sources you downloaded, check the examples/frameworks folder.

We have a guide how to load data into Gantt here https://bryntum.com/docs/gantt/guide/Gantt/data/project_data
This is an article how to work with inline data https://bryntum.com/docs/gantt/guide/Gantt/data/project_data#working-with-inline-data


Re: [VUE 3] DATASET GANTT INTEGRATION (DATE AND SUCCESSORS)

Posted: Fri Jan 21, 2022 3:48 pm
by sidyfall

Hi Alex,

I downloaded and started the demo from the trial version 4.3.6 of vue-3 but i have an error on the console.

Capture d’écran du 2022-01-21 14-47-13.png
Capture d’écran du 2022-01-21 14-47-13.png (89.92 KiB) Viewed 226 times
alex.l wrote:
Tue Jan 18, 2022 1:05 pm

Hi sidyfall,

Please have a look at our examples, you have it in the sources you downloaded, check the examples/frameworks folder.

We have a guide how to load data into Gantt here https://bryntum.com/docs/gantt/guide/Gantt/data/project_data
This is an article how to work with inline data https://bryntum.com/docs/gantt/guide/Gantt/data/project_data#working-with-inline-data


Re: [VUE 3] DATASET GANTT INTEGRATION (DATE AND SUCCESSORS)

Posted: Fri Jan 21, 2022 5:33 pm
by mats

Looks like this is caused by the fact that your trial is expired. If you need more time, please contact sales at bryntum and we will extend it (once) for you.


Re: [VUE 3] DATASET GANTT INTEGRATION (DATE AND SUCCESSORS)

Posted: Fri Jan 21, 2022 5:38 pm
by sidyfall

I managed to get the data on my project correctly now. The issue i still have are the startdates of some tasks.
Is there a constraint that makes the start date of child tasks the same as the parent start date.
I'm reading through the documentation and i can't find this information.


Re: [VUE 3] DATASET GANTT INTEGRATION (DATE AND SUCCESSORS)

Posted: Fri Jan 21, 2022 6:36 pm
by sidyfall

I found my answer in a different post, it's ok now