How keep show all data if many same ID, not to distinct the data ID ?
Thanks.
How keep show all data if many same ID, not to distinct the data ID ?
Thanks.
try to replace existing id
with unique one
{
scheme:{
$init: function(obj){
obj.id = webix.uid(); //if you do not need original id
obj.id += "|" + webix.uid(); //if you need to know original id
}
}
}
Hi @intregal
Thanks for you reply, I sample like this
https://snippet.webix.com/j4x79fym
I want to keep all 3 rows,
and I tested on this project keep all query result event if any double id
try to replace ids just before loading
data: [
{ id:1, title:"The Shawshank Redemption", year:1994, votes:678790, rank:1},
{ id:2, title:"The Godfather", year:1972, votes:511495, rank:2},
{ id:2, title:"The Godfather2 ", year:1975, votes:511497, rank:8},
].map(obj=>{
obj.id += "|" + webix.uid();
return obj;
}),