Home
Analytics
Column Span for Table Element
beachbumm
I am trying to have one data column span more than one column. I mapped the element to print out text if the row is null. The text expands the column in this case and want it to span the other columns.
I read the previous posts, but when I either click on the data row element and the one next to it, the "Merge Cells" menu option from the Element drop down is dim.
I tried adding the colSpan = "2" in the respective cell in the XML and that did not do the trick.
I am new to BIRT, but am kind of getting bummed since no one is answering my posts.
Find more posts tagged with
Comments
bhanley
Do you have elements in each of the cells you are trying to merge? BIRT will not allow the cells to be merged if there are distinct elements (i.e. a label or a data value) in each one.
Id the goal here to span columns only when something is null? Or are you simply trying to merge two cells together for all rows? If the latter is the case, just make sure the cells you want to merge are empty and then highlight them and use the context menu to join them. If you want to dynamically merge cells, that will take some scripting during event processing. I can go through that scripting process with you, but I want to make sure I understand the need before we head down that road.
beachbumm
I have a row mapped with the following from the map tab in the Property Editor:
If(row["TRANS_NUM" is Null) Then Display the Following Value:
**** No credit card transactions ****
This mapping works, but it expands the TRANS_NUM column to contain all of the text. I want the column to remain the same size and the text to span across the other columns.