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 is
- I 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 ?