One to many relationship record based array format for datatables

One to many relationship record based array format for datatables

AbuMaizarAbuMaizar Posts: 14Questions: 6Answers: 1

Hi all
I m applying the feature of row details. what i want to show in the row details is subrecords related to that row,

my current array output looks like this

[{"Filenum":15090248,"FullName":"Ahmad Morsi abdul fattah Abu Maizer","DOB":"05 Dec 2017","Age":0}]

now the "Filenum" has related records in a different table

now my question is how my array should look like when for the main and sub records?

second question, what is the best way to implement it in datatables?

Thanks

This discussion has been closed.