I have a saved search for a `custom record`, this ...
# suitescript
i
I have a saved search for a
custom record
, this custom record has other custom records as
childs
, they relate with the parent record id that is on the child record. I created a
search
that shows me the info from the parent and all the childs, I set the
summary type
of the parent fields as
group
, so for example I have a parent record that has 8 childs, how do I create a search in suitescript to get all the info, from the parent and also from the 8 childs?
b
the group summary type is used to group different search result rows into the same search row
the other summary types are functions used on the grouped data
if you want your children to appear on distinct rows, then you need to group by a column distinct to each child, usually some sort of id
keep in mind that you might not need a summary search if you only use Groups