editor not updaing data

editor not updaing data

baggatbaggat Posts: 5Questions: 2Answers: 0

Hi allan,

I am seeing this error in console when i try to save data back to the table

SCRIPT5007: Unable to get value of the property 'replace': object is null or undefined
dataTables.editor.js, line 295 character 3

I am following your inline editor example, My data source is array called oData and i am passing it to the editor like so

editor = new $.fn.dataTable.Editor({
data: "oData",
table: "#example",
fields: [ { label: 'Title', name: 'Title' }, { label: 'Building', name: 'Building' } ]
});

Editor form renders fine but on update it throws the above error.

Any ideas what could be wrong.

Answers

  • allanallan Posts: 63,695Questions: 1Answers: 10,500 Site admin

    Hi,

    Could you link to the page so I can see all of the code and debug it please. I don't immediately see anything wrong with the above (although there is no data property in Editor, so that parameter won't be doing anything).

    Allan

This discussion has been closed.