Closing Datatable Subview

Hi, how can I close all of the subview by code? As when I parse another result in, the previous subview is open by default.

table.eachRow(table.closeSub, true);

Hi @intregal

Thanks. It worked perfectly.

Initially I try to collect the subview id and try to use table.closeSub(id), but somehow keep giving me the $subOpen is not define error.