Problem on saving event with database autogenerated id

Hi,

I’m facing a problem with JavaPlanner.The method “saveEvent” returns the event status (DHXStatus) and not the event id. When I create a new event it is persisted in the database with a auto-generated id. No problem so far. However, if I don’t refresh the planner the created event id is set to null. If I try to remove it without a previous planner refresh it will not work (since the event id is null).

How can I create an event that holds the id generated by the database without refreshing the planner?

Thanks in advance,
Luís Braga

Hi,
after saving you should do event.setId(newId) and return correct saving status from method saveEvent.
JavaPlanner will send this new id to client side.