Automatic id generation, when the whole model is not loaded

Hello ,

Currently, my project has been started by someone else.
Appointments use the front end DHTMLX unique ID generation, but i wonder, how this ids generation works.

What if I load only the july month events from the back end for example, then add an appointment , will it generate an eventual duplicate ID that would already be present in the back end ?

How could I avoid that ?

Thank you .

Nicolas

Hello,

On the client there will be a temporary id, which is not stored in the database. This generated ID is used only until the moment the event gets a real ID from the database. Database generates a unique id anyway.

Thank you, it has been really useful.
Yes since i’m generating the ids inside the database, DHTMLX use them automatically its cool.