gayathri.rguiiitn Posted July 8, 2019 Share Posted July 8, 2019 Hi Everyone,I was trying to display a structure like below...Here Main table data source contains list of beans in which each bean has its fields to display in main table and a list of sub table beans in which each bean has its own fields to display in sub table columns.What I have followed isI have used structure in jasper "A Table inside list contents in a List component" by fixing the table headers as text fields and giving them proper widths.And this list will iterate over the text fields(text field in a rectangle which has the same width as text field) in one row and followed by a Subtable in second row.Here a list of beans is being passed to the datasource in which each bean has it's own fields to display in main table detail cells and a list of secondary beans which contains details to be displayed in sub table.If I implement like this I am facing a problem with the text fields since the rectangle height do not get dynamically change with the content in the text field hence the content is being displayed beyond the rectangle height and overlapping with below fields.Attaching a screenshot of the issue.Can anyone suggest me how to implement this kind of structure or To get rid of the problem if i use textfields to display as table columns ? Link to comment Share on other sites More sharing options...
ronkiron Posted August 25, 2020 Share Posted August 25, 2020 Hi Gayathri,I'm looking for a similar solution to have nested tables, please let me know if you've found a way to resolve this issue. Thank you! Link to comment Share on other sites More sharing options...
Jaii Posted January 3 Share Posted January 3 Hi ronkiron and gayathri, Is there any possible to achieve this use case please. Link to comment Share on other sites More sharing options...
Jivan Phadtare Posted January 3 Share Posted January 3 Hello, Could you please attach the jrxml file where you designed above structure for report. This will help us to understand about the structure. Link to comment Share on other sites More sharing options...
Jaii Posted January 3 Share Posted January 3 (edited) Hi jivan , Thanks for your response. we have using jasper 4.0.1. We have a use case with render a subtable inside the each rows column cells while export. Is there any way to achieve this without using jr:table component. Because we will export the columns dynamically using java. Edited January 3 by Jaii Link to comment Share on other sites More sharing options...
Jaii Posted January 4 Share Posted January 4 Hi jivan, Could you please clarify my use case please? Link to comment Share on other sites More sharing options...
rpachipu Posted January 9 Share Posted January 9 Hi, You can try using two detail bands ie., detail1 band for main and details 2 band for sub table with print when expressions. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now