List Item Disappearing

I have a ui.list that synced with a datastore and also a form that bound to ui.list

And If I add an item to the list (not datastore) and save it from ui.list, It creates random ID and sending update request to server.

I’m making a simple check for the record and if it’s not exist creating new record and returning it’s ID.

Then suddenly saved record disappearing in webix list. But everything fine when refresh.

Here is the response from php

{“newid”:“273”,“status”:“success”,“id”:“1432137877895”}

If you List is synced with DataStore, a new records should be added into DataStore.

Yeah but if I add into DataStore, there will be an empty record. I’m not using a form to add a new record. But If I add to ui.list it’s creating the record when I save.

You can bind form to DataStore. To show properties in Form on List item click, you can set onItemClick event and call setCursor() from it:

list.attachEvent("onItemClick",function(id){
   data.setCursor(id);
});