Problem with nested Editor
Problem with nested Editor
Working case, no nested editing:
Options: https://debug.datatables.net/ewadof (options in table (#persons))
Files: https://debug.datatables.net/ixisak (files in table (#customerdocuments))
Faulting case:
Datatables trace debugger cant analyze the result (spinning for more than 10 minutes), most likely hanging on the options/files error (as console errors appear).
Console:
"Uncaught Unknown file table name: customerfiles"
Fa @ dataTables.editor.min.js:41
Ea @ dataTables.editor.min.js:41
Excerpt from data result:
files":{"customerfiles":{"591":{"id":"591","file_name":"Avropskontrakt Inera Pro4u 2019-09-01 2020-12-31 signed.pdf","file_mime":null,"file_path":"\/home\/site\/AzureFiles\/ClientAgreements\/Inera AB\/Avropskontrakt Inera Pro4u 2019-09-01 2020-12-31 signed.pdf","web_path":null},"592".......
Will supply link if result changes.
Description of problem:
Files and Options are not treated correctly when using nested editing:
https://editor.datatables.net/examples/datatables/nested.html
Correct data is returned in the midle layer to #Datatables_Table_X.
In Editor, dropdowns with options are empty and displaying file names instead of key index is not working correctly. Example:
customerdoceditor.file('customerfiles', docID).file_name
Editor version 2.0.5 (same behavior in all previous versions of 2.0.X that I have checked, 2.0.2, 2.0.4 and 2.0.5)
All used extensions and DataTables are current
KR,
Björn Hasselberg
This question has an accepted answers - jump to answer
Answers
Hi Björn,
I think I might need a link to your page to help debug this one. Can you drop me a message with a link?
Allan
Hi Allan,
We have already an offline diskussion that is on this topic from june/july I believe.
Could we continue there?
I will post a message in there now for you to catch it up.
KR;
Bjørn H
Hello Allan,
To be able to provide you with a link I also need a valid email address to enable a guest account at our site. Could you please send one in a PM?
KR,
Bjørn H