I experience a problem with my project application.
I use 3 components there: dhtmlxLayout, dhtmlxGrid and dhtmlxScheduler. I also have dhtmlxDataProcessor included so both grid and scheduler can work with MySQL database on the server side.
I can update both grid and scheduler from user interaction of from the script level. The problem appears when trying to do 2 modifications from a single function (after new event is entered into scheduler, I modify one of the grid cell’s value. That triggers both DataProcessor connections (I believe) and only one of them - scheduler - ends successfully. If I use _debug version of dataprocessor, then grid value is saved to the db but not scheduler’s one. Strange…
Any idea why this happen and what’s more important - how to update both values from both components?
You have connector code for the scheduler, and custom saving code for the grid, which is fine - but they expect data in different format. ( scheduler - all data encoded in one request, custom code - simple, one record submit )
To instruct grid’s dataprocessor, to send only one data add the next line
When scheduler.js included on the page it automatically enables support of connectors, so all dataprocessors will work in POST-all-at-once mode, and you need to use to call setTransactionMode for the grid’s connector manually to change the used protocol for it to GET-one-model