Closed lnkpaulo closed 9 years ago
Hi,
Your are getting the country and it is sent to DataTable. But on DataTable cannot retireve the value sent on the field 'loc.properties.country' because loc is an array and DataTable do not allow 'loc.'properties'.
You need to use a renderer on the field (like in the test package with the module) and process manually the data:
{ data: "loc.properties.country", defaultContent: "", render: function(data, type, full) { return JSON.stringify(full.loc); } }
I hope this helps
Regards
Hi,
Thank you for the quick answer and the hint. I was trying to avoid process the data manually but it seems for now it is the solution.
Once more thanks for the excellent plug-in.
Regards.
Hi,
First of all thank you for the excellent plugin.
I have a problem when I'm working with nested objects with arrays. My model is:
and my goal is to retrieve, e.g. loc.properties.country, however I cannot see any info in my tables. Please see my debug info:
How I can pass the right data to datatables?
Thanks.