Parent child editor - child editor do not trigger update query
Parent child editor - child editor do not trigger update query
Hello,
I am trying to implement the parent child editor but fail to update the child.
I tryied both methods:
* https://editor.datatables.net/examples/datatables/parentChild
* https://editor.datatables.net/examples/advanced/parentChild / https://datatables.net/blog/2016/parent-child-editing
For both:
1. I can see and update the parent table
2. I can see the childs of the each parent
3. BUT when I try to update a child, nothing happens. I can only see with the debug that no UPDATE query runs.
Is anyone able to locate what is missing or wrong?
I copy / pasted the code from the examples and adapted it several times, but it always leads to the same result.
Thanks and regards,
Christophe
Answers
here is my code for the fist method:
here is my code for the second method
Hi Christophe,
Can you link to the page you are working on so I can take a look please? You can PM it to me if you don't want to make the link public.
Allan
Hello Allan,
I managed to fix it.
Hard to say what the problem was because I started several times from scratch, but I think the issue was that part.
Question for you: is there a way to be able to create a child at the same time as creating the parent?
Not really - not using nested Editors like that at least. The nested Editor is async to the host Editor, it submits and then returns control to the host.
Allan