Including subarrays in global search (DT 1.9)
Including subarrays in global search (DT 1.9)
I'm using DT 1.9 and have a child row pattern. Each row can have one or more child objects, e.g. each row is a shelf, and can have one or more books. These subobjects are displayed in a plain table in the child row. The data is delivered as a JSON arrray via AJAX, and is of the form:
[
{
field1: val1,
field2: val2,
field3: [
/* One or more subobjects */
]
}
]
My question is: how do I include the fields of the subobjects of each row object in the global search, without knowing how many objects are going to be in the field3 array? To be clear, I want all fields contained in an row object or its subobjects to be searchable.