Page 1 of 1
Change request model and delta changes
Posted: Fri Nov 20, 2020 2:19 pm
by sandippatel
Hello
Would it be possible to change the sync request structure for Bryntum Gantt?
I have examine that when we sync the data Bryntum automatically generate the sync request and call the API.I want only few field to be sync on server rather than whole sync request. would it be possible?
Also I have seen that it gives me delta changes rather whole data. what need to be done to get the whole data available on Bryntum Gantt chart?
Thanks for your amazing support.
Re: Change request model and delta changes
Posted: Fri Nov 20, 2020 2:57 pm
by sergey.maltsev
Re: Change request model and delta changes
Posted: Tue Nov 24, 2020 5:39 am
by sandippatel
Hello
even if I have added the property "writeAllFields" still I only get the delta changes. my requirement is to get all the records in each sync request whether it modified or not. Is this possible?
- gantt.png (98.8 KiB) Viewed 2416 times
Re: Change request model and delta changes
Posted: Tue Nov 24, 2020 9:53 am
by mats
” writeAllFields” means what it says, it includes all fields of every changed record.
You should look at Store.toJSON() to get all the data serialized.
Re: Change request model and delta changes
Posted: Tue Nov 24, 2020 10:53 am
by sandippatel
Thanks Mats
but I am confuse about the usage. since Sync request use default payload or data to send change data to server where would I use
in this case.
Re: Change request model and delta changes
Posted: Tue Nov 24, 2020 12:26 pm
by mats
You should not use our Project for syncing in this case as it is not defined for sending all data (extremely inefficient). You should handle this yourself instead, you can listen to https://bryntum.com/docs/gantt/#Gantt/model/ProjectModel#event-hasChanges to take care of the saving yourself.