I have one json file and I want to list all the json data into webix combo option.But it showing error.
My json format
[{
"USER_ID": 103,
"USER_NAME": "ABCD"
}, {
"USER_ID": 104,
"USER_NAME": "EFGH"
}, {
"USER_ID": 105,
"USER_NAME": "IJKL"
}]
my code of datatable is
this.dtable = new webix.ui({
container: "box",
view: "datatable",
autoheight: true,
autoConfig: true,
css: "auditreview_style",
id: "expList",
editable: true,
columns: [
{ id: "status", header: "", width: 100, template: "{common.checkbox()}" },
{ id: "Client", header: "Client/Code", width: 180, sort: "text" },
{ id: "Code", header: "Carrier/Code", width: 180, sort: "text" },
{ id: "Invoices", header: "Invoices", width: 180, sort: "text" },
{ id: "Shipments", header: "Shipments", width: 180, sort: "text" },
{ id: "Audits", header: "Potential Audits", width: 180, sort: "text" },
{ id: "Manual", header: "Manual Audit", width: 180, sort: "text" },
{ id: "DeadlineDate", view: "button", header: "Audit Deadline Date", fillspace: true, width: 180, sort: "text", editor: "editdate", editable: true },
{
id: "Assignee", label: "TRIPATHI", header: "Assignee", fillspace: true, width: 180, sort: "text", editor: "combo",
options: this.auditorslists, suggest: {
template: '#value#',
filter: function (item, value) {
if (item.value.toString().toLowerCase().indexOf(value.toLowerCase()) === 0)
return true;
return false;
},
body: {
template: '#value#',
yCount: 7,
on: {
'onItemClick': function (id) {
console.log("Webix datatable called");
}
}
}
}
}
],
data: this.items
//url: '../assets/data-json/datalist.json'
});