DataProcessor sync on demand

Hi,
i use scheduler in timeline store, is it possible to not send single event (insert, update, delete) to the backend but send it all on demand?

Hi @lgruszka ,

You can disable the auto data sending for the dataProcessor with the follows code:

  var dp = new dataProcessor("/scheduler/backend/events");
  dp.autoUpdate = false;

And when you will be ready to send updates you can do it with the sendData() method:

dp.sendData();

You also can re-enable the automatic mode with the follows code:

  dp.autoUpdate = false;

If you meant sending not single records, but all updates as one record, you can do it with the follows config:

dp.setTransactionMode("POST",true);

You can get more information about the dataProcessor by the following link:
https://docs.dhtmlx.com/api__refs__dataprocessor.html