use orthogonal arrays data in columns

use orthogonal arrays data in columns

larry7larry7 Posts: 1Questions: 1Answers: 0
edited November 2015 in Free community support

I've read about orthogonal data (https://datatables.net/examples/ajax/orthogonal-data.html) and nested objects (https://datatables.net/examples/ajax/objects_subarrays.html).
Datas are provided via ajax.
The question is how to combine this types together - I need to print out elements of array with orthogonal data, something like this:

[
{type:customer, name: Name1, phone: [phone1, phone2], email: email1},
{type:supplyer, name: Name2, phone: [phone3, phone4], email: email2},
{type:customer, name: Name3, phone: phone5, email: [email3, email4]
]

I've tried to use custom js function test for Column rendering: 'render' = 'test()' but unsuccesfully, it generates error: Uncaught TypeError: a[i[j]] is not a function, may be because data is provided by ajax.

This discussion has been closed.