July 2022

Solved Datatables CSV import using join table

The Problem : Dot nation Problem 1 Problem 2 Solution function ref(obj, str) { return str.split(“.”).reduce(function(o, x) { return o[x] }, obj); } var mapped = ref(data, field.name()); Using this way to read { tablename: { field1, field2 } } It will turn to read tablename.field1 and tablename.field2 Modified Code from Official CVS Import CVS Import selectEditor.on(‘submitComplete’, function (e, json, data, action) { // Use the host Editor instance to show a multi-row create form allowing the us[…]

Solved Datatables CSV import using join table Read More »