Hello everyone,
I'm not certain whether this is a bug or not, but here's what I was trying to do: On the scheduler, when a person drags a Todo around, he can actually change the person it was originally assigned to. Now, since all of my labels for the events are something like:
TODO - lastname - ID
If the assigned person changes, I want to change the label accordingly. Server-side, no problem at all. The data’s changed into the database and everything’s fine and dandy. Of course, since the client doesn’t interrogates the database, then the changes inside the table aren’t reflected. So I figured I would just reload the content of the calendar when such a thing happens, not the most optimal of solutions, I know but it’s the best I could come up with and it works.
In any case, to do this. I used the this:
scheduler.attachEvent("onEventChanged", function(event_id,event_object){
scheduler.load("calendrierConnecteur.php");
});
The event “onEventChanged” supposedly occurs
But in this particular case, I was able to confirm that it actually occurs BEFORE the data was committed to the database which, in my point of view, is not ‘after saving changes’ but ‘before’.
So, with that being said, I have two questions:
-
Is there an event that occurs after the data was committed to the database (not ‘onEventIdChange’ please, because it’s not fired in this case since the event’s ID did not change)
-
Is there a way to force one particular event to requery itself or do I have to reload everything? The updateEvent method sadly does not requery the event’s data from the database, I’ve checked.
Thanks in advance
Osu