Our state of the art Gantt chart


Post by jim@jimclark.net.au »

Hi
Is there any option to have sync() return a full snapshot of the current gantt instead of the transactions (ie. changes to gantt) since last save?

Post by arcady »

Hi,
No there is no such option at the moment I'm afraid. We've never been requested for such feature.

Yet it might be not that complex to implement, there is a private "getCrudStoreChanges" method on the project model that is used to return a store changes as an object. So it should simply return full set of records in the form your server needs it. Something like this (haven't checked the code ..just to give you an idea on how it could look):

class MyProjectModel extends ProjectModel {
    getCrudStoreChanges(storeDescriptor) {
        const
            { store } = storeDescriptor;

    return {
        rows : store.getRange().filter(record => record.isValid).map(record => record.persistableData)
    }
}
}

Of course your server should also expect requests of such form.


Post Reply