During init of the scheduler, I have the following code to create my dataprocessor
var dp = new dataProcessor("sch_events.php");
dp.init(scheduler);
dp.setTransactionMode("POST");
I created sch_events.php to accept the POST events from the Scheduler, and I have that logging every POST that is received as well as handling the database updates.
I am getting POSTs for “inserted” and am successfully inserting records into the database.
But, I am not getting any POST for “updated”
Is there something else that I should be setting in my init to make sure that updates generate a POST ? or can you suggest any other issue I could investigate?
I think it’s to do with the response I am sending back from the server-side script, becuase I have discovered that if I create an event in code and then edit it, it DOES send a POST for the update.
Looking at the EVENT Object in Firebug, I noticed that the events I created by code did not have a value for !nativeeditor_status, but the events that I had inserted and was then editing, still had a value on inserted for !nativeeditor_status
What I am sending as a response from my sch_events.php is the following
Does this mean that there is an error in the library that prevents editing an event that has just been inserted?
In mentioned topic, error occurs because of custom code processing on server side, which doesn’t return correct new id. XML snippet which you have show above - returns correct id, so it is the different case