Editor issues after recent upgrade.
Editor issues after recent upgrade.
We recently upgraded from DataTables 1.10.19 to DataTables 2.0.7 as well as DataTables Editor v1.6.5 to DataTables Editor v2.3.2. Since the upgrade I am experiencing issues with updating a check box that was working prior to the upgrade. Along with this we also upgraded from PHP 7.4 to 8.0.
The error is: Uncaught Unable to automatically determine field from source. Please specify the field name. For more information, please refer to https://datatables.net/tn/11. I have reviewed my script, and the field appears to be fully defined.
Any ideas? Let me know if I need to send any code snippets.
Thanks,
Replies
The place to start is to review the troubleshooting steps at the link provided in the error:
https://datatables.net/manual/tech-notes/11
If that doesn't help then posting your Datatables and Editor configs and the field causing the error would be good. Better is a link to your page replicating the issue so we can help debug.
https://datatables.net/manual/tech-notes/10#How-to-provide-a-test-case
Kevin
I have built a test case to demonstrate the checkbox issue, but I am having trouble returning any rows. If you could review my test to see why it is not working, then maybe we can resolve the checkbox issue.
https://live.datatables.net/rulejufa/1/edit
Thanks,
The
data
needs to point to thedata
object inmemoDataSet
, for example:data: memoDataSet.data,
.There isn't a
data
option for Editor.Here is the updated example:
https://live.datatables.net/rulejufa/3/edit
The
Unable to automatically determine field
error doesn't occur when checking/unchecking the checkbox. The only thing I can think of is to make sure you havetd:not(:first-child)
as part of your selector for inline editing, like you have in the test case.Kevin
Kevin, it is interesting that the test case works fine but my production script produces an error. The only difference between the two is the Ajax I am using to retrieve data. The script is updating the database, but I would like to eliminate the error if possible. I am including my production code snippet if that helps.
Thank, Mike
Can you PM me a link to the page so I can debug it?
Allan