Uncaught Unknown file table name: files
Uncaught Unknown file table name: files
i have a custom button
{
extend: "selectedSingle",
text: "Start/Stop",
action: function ( e, dt, node, config ) {
var d = table.row( { selected: true } ).data();
console.log(d);
console.log(table);
console.log(editor);
editor.edit( table.row( { selected: true } ).index(), false )
.set( "mailing.status", ( editor.get("mailing.status") === "delayed" ? "started" : "delayed" ) )
.submit();
}
},
when this button is pressed i get the following error:
Uncaught Unknown file table name: files
debug from the datatables debugger
https://debug.datatables.net/odoqaf
any help would be apriciated, all other stuff in the table works perfectly, this used to work also
Answers
this is a debug with an upgraded version:
https://debug.datatables.net/osasok
i traced it to the editor.file part
, {
- label: "Atachment:",
- name: "mailing.attachment",
- type: "upload",
- display: function ( file_id ) {
- return editor.file( 'files', file_id ).web_path;
- }
Hi Maikel,
Thanks for the debug trace. It shows
"files": [],
in the loaded data, so there would indeed be an error given.How are you populating the files information at the server-side?
Allan
this is the serverside code
any idea whats going on here?
we still see this problem.
note that not all rows in the mailing table will have a file attached
Hi Maikel,
Could you upload a new debug trace for me please? Old ones get deleted automatically.
Thanks,
Allan