Is it possible to plan at some point to make GroupTable computes intermediate totals ? For now it displays only the grand totals in the top row.
For instance in the screenshot below, on the “client” group line, the cells for which column has an agregation could display the result of agregation for the group.
Hi.
Could you please provide more information about your problem? Which version of the platform do you use? If it is possible, could you share the xml file of your screen or a small project in order to help us investigate the problem.
In the meantime I have found a workaround for people encountering the same issue.
Through debugging I found the grouping algorithm is split between WebAbstractTable and WebGroupTable. The first one manage an aggregationCells attribute, while the second uses a groupAggregationCells attributes.
And it seems there is some clash between the logic handling the two in the case of KeyValueEntity (I did not understand why though).
However, by extending WebGroupTable I was able to neutralise the aggregationCells property, letting the WebGroupTable uses its own one without interference.`
It fixes the issue, and it seems not having any impact on the standard case where GroupTable is used with entities that are not KeyValueEntity ones.
`
Here is how.
Extend WebComponentsFactory
public class ExtWebComponentsFactory extends WebComponentsFactory {
@Override
public Component createComponent(String name) {
if(name.equals(GroupTable.NAME)) {
try {
return ExtWebGroupTable.class.newInstance();
} catch (InstantiationException | IllegalAccessException e) {
throw new RuntimeException("Error creating the '" + name + "' component instance", e);
}
}
return super.createComponent(name);
}