[Resolved] Table Component: Merge cell

0

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

========================================= Site:  http://www.danielsousa.com.br Twitter:  @danielsbarros



Post Edited by danielsb2 at 01/07/2010 08:16
danielsb2's picture
Joined: Apr 2 2008 - 10:34pm
Last seen: 1 year 6 months ago

9 Answers:

0

Yes, it is possible. Actually you will not really merge the cells, you will but the columns you need in a column group, then hide the footer cell of the individual columns, and show only the column cell footer, which will span on the three columns.

Giulio

giulio's picture
1473
Joined: Jan 2 2007 - 4:15pm
Last seen: 1 week 12 hours ago
0

 Thanks for the reply Giulio!, I did not understand how to do what you say, but I tried and failed. The table must be created that looks like this attached. Could you send me a sample table with the merged cell that format?

 



Post Edited by danielsb2 at 05/20/2010 14:39
danielsb2's picture
Joined: Apr 2 2008 - 10:34pm
Last seen: 1 year 6 months ago
0
Giulio, could you send me a xml with a example like this table?
danielsb2's picture
Joined: Apr 2 2008 - 10:34pm
Last seen: 1 year 6 months ago
0
I believe it is not possible to merge the cell. As it Giulio said, I could not do.
 
I will report to be added in next version somethins like a "footer" to the table.
 

 

========================================= Site:  http://www.danielsousa.com.br Twitter:  @danielsbarros



Post Edited by danielsb2 at 10/06/2010 14:35
danielsb2's picture
Joined: Apr 2 2008 - 10:34pm
Last seen: 1 year 6 months ago
1

Hi,

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:

  1. Create a Table with (in your case) 7 columns.
  2. 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.
  3. 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.

bfoese's picture
19
Joined: Jul 24 2008 - 4:25am
Last seen: 6 years 3 months ago
0

Thank you so much bfoese!!

The trick works perfectly 

========================================= Site:  http://www.danielsousa.com.br Twitter:  @danielsbarros

danielsb2's picture
Joined: Apr 2 2008 - 10:34pm
Last seen: 1 year 6 months ago
0

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?

Thanks.

Lin

yilin1234's picture
Joined: Jul 22 2010 - 12:06pm
Last seen: 4 years 3 months ago
0
It is really work, Thanks.
sailingyang's picture
Joined: Apr 5 2011 - 6:57pm
Last seen: 3 years 6 months ago
0

HI,i wanted to do in tables.....if repeated values are there then they should be merged.Can anyone help me

Sudhakarkmt's picture
Joined: Jun 12 2013 - 10:49am
Last seen: 10 months 1 week ago
Feedback