I have a table with 5 columns and in the footer, i need to merge 3 coluns to show a value.
is possible to merge cell using the table component?
i'm using iReport 3.7.2
Post Edited by danielsb2 at 01/07/2010 08:16
Post Edited by danielsb2 at 10/06/2010 14:35
merging cells is actually possible. But in my case the text within a field that is nested inside of a nested cell doesn't appear in the generated report. I posted it yesterday (topic ID #75431) and included the code for the table component.
However if you want to recreate the table you pointed out in iReport, try these steps:
- Create a Table with (in your case) 7 columns.
- For the szenario that you want to have the merging column in the column footer, select the columns two to seven in this footer (Report Inspector tree) and choose "Group selected columns" in the context menu. This creates a new element called "Group Header", that spans the formerly selected colums.
- This new element doesn't contain a cell yet, so you choose "Add cell" in the context menu of this element. Now you're able to drop a text field in this cell.
Hopefully, this does the trick for you.
Can you please post the steps how to create a table. (I mean bond a table to the query)
I created a table with 21 columns the row should denymicly from query. Example, if the query only has two records, the table will be two rows. If the query returns 5 records, the rows are 5.
I put the 21 columns information to the table from my main report and the table itself, both showed the null values in the table.
I put the query returned values at the sumary section of the main report, the values showed fine.
Can you tell me what's wrong?