Forum OpenACS Development: Group Summary Add new parameter to template::list::create

I have use case where I just want ot see the group names, and aggregate totals for the groups without all the detail rows.

I added a parameter to template::list::create
{-group_summary "f"}

And put a <if> around the multirow that puts the detail rows in each group in the listtemplate.

(We still need to actually grab all the rows because listbuilder adds/counts etc every row to calculate the aggregates).

Does this sound generally useful?

Of course, by default its off and does not change the default behavior of listbuilder.

Yes, I think Quest has done exactly the same albeit with a different name so I think it is generally useful.
Hi guys,

yes I also made a change to list builder aggregation, but mine was a bit different - it was to suppress the grand total at the bottom of the list, while still showing all the detail rows and sub-totals.

It works as a new parameter to template::list::create
{-aggregates_total_p 1}

If set to 0 don't show grand totals for aggregates. If set to 1, works as currently, displaying the grand total.

Defaults to 1 for backwards compatibility. It's fairly unusual to do sub-totalling without wanting a grand total too.

Brian