You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
function myCallbackFunction (updatedCell, updatedRow, oldValue) { console.log("The new value for the cell is: " + updatedCell.data()); console.log("The values for each cell in that row are: " + updatedRow.data()); }
updatedRow.data() is returning [object Object]
Any ideas why?
var ResultsTable = $("#resultstable").DataTable({ lengthChange: true, pageLength: 25, filter: true, deferRender: true, responsive: true, processing: true, language: {"zeroRecords": " "}, columns: [{ "data": "ifName" },{ "data": "alias" },{ "data": "operStatusStr" },{ "data": "adminStatusStr" }, { "data": "ReservedBy" }, { "data": "ReservedDescription" }, { "data": "ReservedDate" } ] });
function myCallbackFunction (updatedCell, updatedRow, oldValue) { console.log("The new value for the cell is: " + updatedCell.data()); console.log("The values for each cell in that row are: " + updatedRow.data()); }
ResultsTable.MakeCellsEditable({ "onUpdate": myCallbackFunction, "inputCss":"my-input-class", "columns": [5], "allowNulls": { "columns": [5], "errorClass": "error" }, "confirmationButton": { "confirmCss": "my-confirm-class", "cancelCss": "my-cancel-class" } });
output:
The new value for the cell is: test
The values for each cell in that row are: [object Object]
The text was updated successfully, but these errors were encountered: