We just started evaluating the webix Kanban widget so I’m following the example code and digging through documentation.
I am using the + icon in the header to create a new card. Not doing anything fancy, just following the examples. Everything so far is working, except that I’m not getting the temporary ID when a new card is first created.
As I understand it, new cards are created with a temporary id. That temporary id should be sent to the server. Then, when the record is inserted into the database a permanent id is generated and that should be returned to the kanban widget.
When I create a new card all I’m getting is this:
{“text”:"",“status”:“new”}
I assume that should include the temporary id because I need it for my response.
The documentation says this:
"For INSERT operations a new ID is important as on the client side any newly added item gets a temporary ID, randomly generated by the webix.uid() method (something like 1369905287157).
After adding this item to a database table, it gets a normal ID generated by auto increment, and this ID will be loaded to the client side on page refresh. So you might require this new ID at once to work with the recently added item."
So, my response to a new card event should be something like this:
{ “id”:“1369905287157”, “status”:“success”, “newid”:“13” }
Why don’t I get the temporary id when a new card is created?
If I don’t know the temporary id, how can I “connect” the real id to that new card?