Skip to content

The values for each cell in that row are: [object Object] #97

@tw15tr

Description

@tw15tr

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]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions