Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DynamicJasper Groups with Grand Total #141

Open
vbini21 opened this issue Apr 29, 2023 · 0 comments
Open

DynamicJasper Groups with Grand Total #141

vbini21 opened this issue Apr 29, 2023 · 0 comments

Comments

@vbini21
Copy link

vbini21 commented Apr 29, 2023

I want to have the grand total below the group totals. Been trying it out for long and its still not working. My code is as below

GroupBuilder gb1 = new GroupBuilder();
DJGroup g1 = gb1.setCriteriaColumn((PropertyColumn) columnCategory)
.setGroupLayout(GroupLayout.VALUE_IN_HEADER)
.addFooterVariable(columnAmount, DJCalculation.SUM)
.setFooterVariablesHeight(new Integer(20))
.setFooterHeight(new Integer(50), true)
.setHeaderVariablesHeight(new Integer(35))
.setDefaultHeaderVariableStyle(titleStyle)
.build();
GroupBuilder gb2 = new GroupBuilder();
DJGroup g2 = gb2.setCriteriaColumn((PropertyColumn) columnSummation)
.addFooterVariable(columnAmount, DJCalculation.SUM)
.build();

report1.getReportBuilder().addGroup(g1);
report1.getReportBuilder().addGroup(g2);

Any assistance?

@vbini21 vbini21 changed the title Report UI Grand Total DynamicJasper Groups with Grand Total Apr 29, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant