RowSpan for table.

CaTcHmE
CaTcHmE Member
edited February 11, 2022 in Analytics #1
Hi,

I'm new to birt, i need to display my table like the attached image.
Could you kindly help me with a sample file, so that i can understand and complete my code for production.

Comments

  • mcremer
    mcremer Member
    edited December 31, 1969 #2
    <blockquote class='ipsBlockquote' data-author="'CaTcHmE'" data-cid="80845" data-time="1312192491" data-date="01 August 2011 - 02:54 AM"><p>
    Hi,<br />
    <br />
    I'm new to birt, i need to display my table like the attached image.<br />
    Could you kindly help me with a sample file, so that i can understand and complete my code for production.<br /></p></blockquote>
    <br />
    I sugest playing with supressing duplicates. You cant compleetly mimic the merged fields. As you get a set of data the repport processes row by row.<br />
    <br />
    Or you could try to do this with complex scripting but this will make it perform a lot worse.
    Warning No formatter is installed for the format ipb
  • CaTcHmE
    CaTcHmE Member
    edited August 1, 2011 #3
    <blockquote class='ipsBlockquote' data-author="'mcremer'" data-cid="80847" data-time="1312199403" data-date="01 August 2011 - 04:50 AM"><p>
    I sugest playing with supressing duplicates. You cant compleetly mimic the merged fields. As you get a set of data the repport processes row by row.<br />
    <br />
    Or you could try to do this with complex scripting but this will make it perform a lot worse.<br /></p></blockquote>
    <br />
    Hi mcremer,<br />
    <br />
    Thanks for the response, i achieved this with the help of suppress duplicated property, but the cell left blank. Is that possible to merge the empty rows like we're rowspan in html.
  • mcremer
    mcremer Member
    edited December 31, 1969 #4
    <blockquote class='ipsBlockquote' data-author="'CaTcHmE'" data-cid="80852" data-time="1312203008" data-date="01 August 2011 - 05:50 AM"><p>
    Hi mcremer,<br />
    <br />
    Thanks for the response, i achieved this with the help of suppress duplicated property, but the cell left blank. Is that possible to merge the empty rows like we're rowspan in html.<br /></p></blockquote>
    Im afraid not, if you want somtin g like that you should look at the cross tab. This has this nature more from default.
    Warning No formatter is installed for the format ipb
  • mwilliams
    mwilliams Member
    edited December 31, 1969 #5
    You can set the rowspan and columnspan of a cell in a table, but I don't know if you'll know the data in the table early enough to set this. A crosstab could be a good solution if it works for your data. There's also the possibility of using embedded tables to achieve the same. I'll look into the suppress duplicates and row span setting to see if there's a way to do this in a simple table.
    Warning No formatter is installed for the format ipb
  • CaTcHmE
    CaTcHmE Member
    edited December 31, 1969 #6
    <blockquote class='ipsBlockquote' data-author="'mwilliams'" data-cid="80863" data-time="1312205573" data-date="01 August 2011 - 06:32 AM"><p>
    You can set the rowspan and columnspan of a cell in a table, but I don't know if you'll know the data in the table early enough to set this. A crosstab could be a good solution if it works for your data. There's also the possibility of using embedded tables to achieve the same. I'll look into the suppress duplicates and row span setting to see if there's a way to do this in a simple table.<br /></p></blockquote>
    <br />
    <br />
    I also used crosstab, but that is not what i expected, but may be the rowspan will solve this. Can u explain me with an event handler to set a rowspan.
  • mwilliams
    mwilliams Member
    edited December 31, 1969 #7
    If you click on a cell, you can set the row span with this.rowSpan = x. I just don't know if you'll be able to set this based on data. I'll let you know if I get that working.

    Another thing you could try would be to group your table, set the vertical alignment of the cell to middle, and set the drop of the cell to "all".
    Warning No formatter is installed for the format ipb
  • CaTcHmE
    CaTcHmE Member
    edited December 31, 1969 #8
    <blockquote class='ipsBlockquote' data-author="'mwilliams'" data-cid="80891" data-time="1312235000" data-date="01 August 2011 - 02:43 PM"><p>
    If you click on a cell, you can set the row span with this.rowSpan = x. I just don't know if you'll be able to set this based on data. I'll let you know if I get that working.<br />
    <br />
    Another thing you could try would be to group your table, set the vertical alignment of the cell to middle, and set the drop of the cell to "all".<br /></p></blockquote>
    <br />
    <br />
    Thanks williams, I'll try this..