Hi, I'm using the clientRowGroup plugin for one of my reports. I am grouping on two columns. I want the inner group to only show grouping if the count is greater then 1. Otherwise I would like to display it as a normal row. Is this possible?
"clientRowGroup" => [
"display_date" => [
'direction' =>'desc',
'calculate' => [
"daily_total" => [
"count",
"display_date",
"format" => "function(value) {return value}",
]
],
"top" => "<td colspan='999' style='background:#2997CE;color:white;'>{expandCollapseIcon} Daily Total: {daily_total}",
],
"name" =>[
"direction" => "asc",
"top" => "<td colspan='999'>{expandCollapseIcon} Test",
]
],
For example, if I have an outer group with display date of 03/03/2022
. And inside this rowgroup, there are 2 sets of names; Bill with 3 rows, and John with 1 Row... I want Bill to have a collapsable row group, and John displayed as a normal row.
Right now both Bill and John will display as a collapsable rowgroup, which isnt what I want.
Can I do something like:
`
"clientRowGroup" => [
"display_date" => [
'direction' =>'desc',
'calculate' => [
"daily_total" => [
"count",
"display_date",
"format" => "function(value) {return value}",
]
],
"top" => "<td colspan='999' style='background:#2997CE;color:white;'>{expandCollapseIcon} Daily Total: {daily_total}",
],
"name" =>[
"condition" => "count >1 " <-----------
"direction" => "asc",
"top" => "<td colspan='999'>{expandCollapseIcon} Test",
]
],
Thanks in advance.