odd behavior of datatable column with options

Hello all,

I have a weird error that I can’t pinpoint.

There’s this datatable pulling data from my API server. One of the columns is a relationship, so I’ve added options:"/api/v1/groups" to display the correct values nicely.

Now the fun part. It works for the groups which id’s are sequential. I used to have 7 groups with their id’s from 1 to 7. I have added a new group with id=16 and weird things start to happen. When I use the popup form, the select (which feeds its data from the same api endpoint) shows all 8 groups correctly. When I save data, the correct id is passed back to the datatable and the server (I see it in the log and the correct value is saved in the DB). After closing the popup, the correct group is displayed in the datatable. But after I refresh, the field is empty (despite data being sent from the API correctly).

I have other selects and lists which pull API data in the same manner (even with ids that are non-sequential) and everything works ok. Just not that datatable.

I’d love to hear any suggestions.

JZ

Also, is there a way to force a column to query the url from the options: field without having to redefine the entire column?

Hello,

Please make sure that the new value is saved and then loaded correctly. And it you are sure that DataTable causes the problem please create a snippet that reproduces the problem.

Also, is there a way to force a column to query the url from the options: field without having to redefine the entire column?

Could you please explain this issue ?

Back to the issue. I have successfully re-created the bug, based on copy of my API data.

http://webix.com/snippet/3cb90d5a