Our state of the art Gantt chart


Post by shaveta »

Hi,

Is there any update on this? https://forum.bryntum.com/viewtopic.php?f=52&t=15892

Any workaround to fix it? Also when we sync data it only sends rows mark as dirty, is there a way to send all rows present in store so that i can save the baselines if data is there?


Post by mats »

Not yet I'm afraid, we aim to address this in Q1 next year.


Post by xbtc »

Hello,

it seems this bug is not fixed yet? Is there any workaround you can recommend to persist / sync changes to the baselines of tasks to the server?

In my case when I call i.e. gantt.taskStore.setBaseline(1) I would expect that sync is triggered for those tasks where the baseline is affected/changed. Manually calling gantt.project.sync() after setBaseline also does not report any changes...

Many thanks in advance.


Post by alex.l »

Hi xbtc, no workaround I'm afraid, it should be implemented on our side.
You could try to update the model manually after setBaseline call.

All the best,
Alex


Post by xbtc »

Thanks for the fast reply alex. Could you elaborate a bit on the idea of manually updating the model? I mean in my case I have pretty big projects with alot of tasks in them. So if the user calls i.e. "Set Baseline 1" I want to persist all changes to the baseline 1 of all affected tasks to our backend. As the Bryntum component is currently not keeping track of those changes, does that mean I would have to "blindly" save all tasks with all their fields to the backend?

How do your other customers currently handle persisting changes to baselines to their backends/databases?


Post by alex.l »

How do your other customers currently handle persisting changes to baselines to their backends/databases?

There is no such questions on the forum except topics mentioned here, so I can't say that.

I don't see any easy solutions here.
"Set Baseline 1" is simply goes throw all tasks in the taskStore and set baseline version in task.baselines store. I just thought about to specify some manual field in TaskModel and update it accordingly with that baseline change.
Another thing to investigate (just an idea) is https://www.bryntum.com/docs/gantt/api/Core/data/Model#function-isFieldModified method (you should check the source code) that may be overrided for baselines model field to check if baselines store has any changes (https://www.bryntum.com/docs/gantt/api/Core/data/Store#property-changes ).
Unfortunately, there is no mechanism available to track these changes, that's what is the https://github.com/bryntum/support/issues/336 about.

All the best,
Alex


Post by xbtc »

Thank you very much for the list of ideas. Highly appreciated - i will take a look.


Post Reply