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
Support Forum
Works great here: https://bryntum.com/examples/gantt/advanced/
Please post a test case to reproduce the issue.
All the best,
Alex
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
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
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
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:
You can remove
project
config and add resources/tasks/dependencies into ganttConfig:<bryntum-gantt #gantt [resources] = "ganttConfig.resources" [tasks] = "ganttConfig.tasks" [dependencies] = "ganttConfig.dependencies"
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