Is there any way that I can get the event ID(tid) I just added?
addEvent’s return value is sid, but can I get the tid instead of sid?
Or can I retrieve tid from sid?
It is difficult to get the reference for the added event because the basic value for scheduler._event[] is tid.
I am currently using a custom lightbox. What I am trying to do is to retrieve the event_id based on the event’s coordinates from dhx_cal_event after adding an event.
Hello,
Once you add event following happens
- we send information to the server
- event is saved there, new id is generated
- we recieve answer from the server and change event on client-side and call “onEventIdChange” event
I believe onEventIdChange is what you are looking for.
Best regards,
Ilya