Filtering with nested Object data (object in array)

Filtering with nested Object data (object in array)

ShaorandraShaorandra Posts: 1Questions: 1Answers: 0

In my JSON I have a nested Object data as array and Object. It looks like that:
"contentVMlist":[
{
"dbContID":3,
"dbContType":2,
},
{
"dbContID":1,
"dbContType":1,
}

with "aoColumns: [ { "data": "contentVMlist.[ ].dbContType"} ]" i get the data into the table.
It shows like this in the table column "2 1".

with this.api().columns([9]).every(function () {
var column = this;
else if (column[0] == 9) {
var select2 = $('<select> </select>') // the select is not so short i just shortened it now
.appendTo($('#dbContType')).on('change', function () {
var val = $.fn.dataTable.util.escapeRegex(
$(this).val()
);
column.search(val ? '^' + val + '$' : '', true, false).draw();
});

if "contentVMlist" only has 1 entry, everything works fine. But if there are 2 or more entries (like "1 3" or " 1 3 2") it cannot see the entries as single occurences. it works if the select would be "1 3 2", but the user only wants to chose one and then all with that type show up (if there is more than one it should show up too)

How can I get this done?
I tried a few different things that didnt work.

This discussion has been closed.