For my project, I am utilizing an angular js datatable and currently trying to access the following object:
"finalizedArr":[
{
"treaceId":"KYC454353545",
"approval":[
{
"usr":"kalindu kumara",
"threshold":100
},
{
"usr":"kuma kalil",
"threshold":80
},
]}
]
In order to generate a table, I am using the code sample below as the main part of the code:
$scope.dtColumns = [
DTColumnBuilder.newColumn('traceId').withTitle('Trace ID'),
DTColumnBuilder.newColumn('approval.usr').withTitle('Name'),
DTColumnBuilder.newColumn('approval.threshold').withTitle('Match Strength %')
];
Although the 'traceId' column is correctly rendered in the table, the 'usr' and 'threshold' columns are not displayed. It seems that the issue lies with them being inside an array, but I'm unsure how to modify this. Could you please check my problem?