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

merge cells with same values оn previous column row #148

Open
UUsatova opened this issue Sep 11, 2024 · 4 comments
Open

merge cells with same values оn previous column row #148

UUsatova opened this issue Sep 11, 2024 · 4 comments

Comments

@UUsatova
Copy link

UUsatova commented Sep 11, 2024

I have a list of data retrieved from a database that contains a lot of redundancy. The data includes fields such as user, users access groups, access levels within each group, and doors within each access level. When there are identical values across multiple rows, i wanna to merge those values. However, the merging should happen within the record of the previous column.
image

Does anyone know if it is possible to do this with dynamic jasper

@danielpeintner
Copy link

I am not sure if there is a way to do it with Dynamic Jasper but you can always do it yourself by iterating over each row and remembering the last value per column.

@UUsatova
Copy link
Author

UUsatova commented Sep 11, 2024

Thanks for your answer, but I export my report in different formats like pdf, xlsx, docx, At what stage should I do iterating? After converting my DynamicReport into JasperPrint?

@danielpeintner
Copy link

You can remove the data before giving it to DynamicJasper.

Anyhow, I think you can also use "groups" in DynamicJasper and it does it for you.
see https://github.com/intive-FDV/DynamicJasper/blob/master/docs/getting-started.md ..see "ar.com.fdvs.dj.test.GroupsReportTest"

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

3 participants
@danielpeintner @UUsatova and others