How can i display value of object array with DataTable

How can i display value of object array with DataTable

rahim0704rahim0704 Posts: 1Questions: 1Answers: 0

Hi,

I'm having this problem, I'm trying to display those values with DataTable. But I got this error message.

'DataTables warning: table id=tbl_method - Requested unknown parameter 'Cleasning' for row 0, column 0.'

Hope someone can advise me where is my mistake. Thank you

--- Here is my sample json data:
[
{
"report_root_cause_cause_id":"1",
"cause_desc":"Cleasning",
"cause_category":"method"
},
{
"report_root_cause_cause_id":"2",
"cause_desc":"Bone",
"cause_category":"material"
}
]

--- Here is my js code:

Answers

This discussion has been closed.