Our state of the art Gantt chart


Post by shimnx »

After adding the Total Slack field to the Gantt task, there is only one task left in the list and one error message is reported

Attachments
屏幕截图 2022-05-09 122613.png
屏幕截图 2022-05-09 122613.png (61.9 KiB) Viewed 356 times

Post by shimnx »

This is a video

Attachments
IMG_6087.MOV
(8.02 MiB) Downloaded 39 times

Post by alex.l »

Works great here: https://bryntum.com/examples/gantt/advanced/
Please post a test case to reproduce the issue.

All the best,
Alex


Post by shimnx »

I'm sorry that our software is deployed on the internal server of our company, so you can't access the test cases released. Is there any other way to check


Post by alex.l »

Sure. Try to reproduce it in our examples. You have all examples in sources you downloaded. If required, apply minimal changes to make it reproducible and post here with steps to reproduce and JSON you used.

Or you can try to debug it yourself and find more information. It may help to go forward.

For now, I can assume that it's dependent with some custom code for duration field in data model or so. I cannot be sure, I only checked our source code by the error you posted. That's all I can do with the information provided.

All the best,
Alex


Post by shimnx »

After I run the official demo, it shows me to purchase authorization. May I ask how can I run the demo

Attachments
屏幕截图 2022-05-09 134517.png
屏幕截图 2022-05-09 134517.png (46.59 KiB) Viewed 348 times

Post by shimnx »

I have logged in, but it still not works

Attachments
屏幕截图 2022-05-09 140528.png
屏幕截图 2022-05-09 140528.png (150.59 KiB) Viewed 345 times

Post by alex.l »

What exactly is not working? I don't see errors on the screenshot provided. You only logged in into npm repo.
Here is the guide how to work with NPM repo https://bryntum.com/docs/gantt/guide/Gantt/npm-repository

The problem about expired trial version you posted above: could you please let us know how did you download that source code? You should download it from our CustomerZone, you got an access when you bought the license.
Please make sure you used that version and not trial source code.

All the best,
Alex


Post by shimnx »

Thank you, I have now launched the official example, I now want to test myData in the official example, how to load it using the loadInlineData method, myData is in assets>data> mydata.json. Can you load it for me and send me the code? Thanks a million

Attachments
advanced examples.7z
(465.6 KiB) Downloaded 38 times

Post by alex.l »

If you want to load inline data as initial data, please remove transport config from your project. You set autoLoad: true and specified load url, so project will load data from the server after init. But I see you tried to set inline data in ngOnInit as well, I guess that's the problem.

To load inline data after gantt initialization you need to call https://bryntum.com/docs/gantt/api/Gantt/model/ProjectModel#function-loadInlineData

this.gantt.project.loadInlineData(inlineData);

Make sure server data has been loaded at the moment you called it (in case you want to use both for some reasons).

To use inline data as initial data:

  1. You can remove project config and add resources/tasks/dependencies into ganttConfig:

    <bryntum-gantt
        #gantt
        [resources]               = "ganttConfig.resources"
        [tasks]                       = "ganttConfig.tasks"
        [dependencies]        = "ganttConfig.dependencies"
    
  2. Another way is to set data in store in project specs:

    const ganttConfig = {
        dependencyIdField : 'wbsCode',
    
        project : {
            // Let the Project know we want to use our own Task model with custom fields / methods
            taskModelClass : Task,
     
    // The State TrackingManager which the UndoRedo widget in the toolbar uses
    stm : {
        autoRecord : true
    },
    
    resourceStore : {
        data : data.resourcesData
    },
           // ....
    
    

    https://bryntum.com/docs/gantt/guide/Gantt/integration/angular/data-binding#binding-existing-data-to-the-component
    https://bryntum.com/docs/gantt/guide/Gantt/data/project_data

All the best,
Alex


Post Reply