Sunday, December 11, 2011

Group Summary for Multi-level Grouping

while trying to get the GroupSummary extension working with the MultiLevel grouping extension, Without any coding changes to Group Summary, the only problem I faced is that, it generated an extra summary row at the end of each outer group. The totals on the extra summary are identical to those of the last inner group summary.
This is the solution for avoiding the extra summary row:
In the MultiGroupingView.js
for doRender function replace the for loop:
for (var k = 0; k < toEnd; k++) {
this.doGroupEnd(buf, g, cs, ds, colCount);
}

with,
for (var k = 0; k < toEnd-1; k++) {
this.doGroupEnd(buf, g, cs, ds, colCount);
}

This will remove the extra summary row.

Ideally this row must calculate the totals of all the sub-groups and display their summary. Will fix the same and post it soon..:)


No comments:

Post a Comment