Joined editor table throwing unknown parameter hm_offices.OfficeName
Joined editor table throwing unknown parameter hm_offices.OfficeName
So I have tried following the joined tables example to get this going and while the editor side of things works datatables is throwing this error when it redraws the table after an update.
Here is the debug info - http://debug.datatables.net/ufuces
And the code I'm working with - http://live.datatables.net/pediwure/1/edit?html,css,js,console,output
Can anyone tell me where I'm going wrong? I'm sure it is something simple but I can't see it for the life of me.
This question has an accepted answers - jump to answer
Answers
Just to confirm, the error is coming from:
{ "data": "hm_offices.OfficeName"},
?The data shown in the debug trace doesn't appear to have any data at all for
hm_offices
- example object:Could you show me the PHP you are using with the join statement so I can see how it is configured please?
Thanks,
Allan
Should be the data I'm getting back according to me
Hi Allan any ideas what I'm doing wrong?
I've reformatted the JSON to make it a little clearer - as you will be abel to see, there is no
hm_offices
object in thedata
objects for each row.That is because there is no field that references
hm_offices.OfficeName
. You probably need to add something like:Allan
Thanks heaps Allan