I have a group table that I have grouped by Currency field. It displays the group total for each currency but how do I hide the total amount at the bottom of the group table ?
This amount should not be displayed because amounts for different currencies must never be added together.
I was referring to hiding the total aggregation at the bottom of the table at all times.
If it were to be hidden whenever the table is grouped by currency then that would be okay as well. I still need to see the totals for each currency though.
Setting showTotalAggregation="false" does not work at run time, the row disappears only after page refresh. It will work if the property is set before the table is shown (e.g. in InitEvent).
However, there is a problem with the BOTTOM total aggregation because it does not disappear at all. I created an issue: cuba-platform/cuba#3194.
As a workaround try to change aggregation row style to the TOP or don’t set BOTTOM style:
@Subscribe
public void onInit(InitEvent event) {
ordersTable.setAggregatable(true);
ordersTable.setAggregationStyle(Table.AggregationStyle.TOP);
ordersTable.setShowTotalAggregation(false);
}