Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » BIRT » Table header/footer/detail style issues(Border style change not applied but others are)
Table header/footer/detail style issues [message #550763] Wed, 04 August 2010 09:44 Go to next message
Missing name Missing name is currently offline Missing name Missing nameFriend
Messages: 94
Registered: November 2009
Member
Hi,
I'm trying to change the inbuilt styles for a table so that I have a border around the table itself, the header, the footer and each table row (I know I can do this by editing the table itself but I want to change the styles as I will be exporting it to a library).

I have changed the "table" style to give a border/text align which works fine. However when I edit "table-detail", "table-header" or "table-footer" to include a border, nothing happens! I can successfully change the font size/colour of these elements in the style, just not the border.

I'm using BIRT 2.3.2 designer. Is this a bug or am I doing something wrong? Here is my report:

<?xml version="1.0" encoding="UTF-8"?>
<report xmlns="http://www.eclipse.org/birt/2005/design" version="3.2.17" id="1">
<property name="createdBy">Eclipse BIRT Designer Version 2.3.2.r232_v20090521 Build &lt;2.3.2.v20090601-0700></property>
<property name="units">in</property>
<property name="iconFile">/templates/blank_report.gif</property>
<property name="bidiLayoutOrientation">ltr</property>
<data-sources>
<oda-data-source extensionID="org.eclipse.birt.report.data.oda.jdbc" name="Data Source" id="172">
<property name="odaDriverClass">org.eclipse.birt.report.data.oda.sampledb.Driver </property>
<property name="odaURL">jdbc:classicmodels:sampledb</property>
<property name="odaUser">ClassicModels</property>
<property name="OdaConnProfileName"></property>
</oda-data-source>
</data-sources>
<data-sets>
<oda-data-set extensionID="org.eclipse.birt.report.data.oda.jdbc.JdbcSelectDataSet " name="Data Set" id="173">
<list-property name="columnHints">
<structure>
<property name="columnName">LASTNAME</property>
<property name="displayName">LASTNAME</property>
</structure>
<structure>
<property name="columnName">FIRSTNAME</property>
<property name="displayName">FIRSTNAME</property>
</structure>
</list-property>
<structure name="cachedMetaData">
<list-property name="resultSet">
<structure>
<property name="position">1</property>
<property name="name">LASTNAME</property>
<property name="dataType">string</property>
</structure>
<structure>
<property name="position">2</property>
<property name="name">FIRSTNAME</property>
<property name="dataType">string</property>
</structure>
</list-property>
</structure>
<property name="dataSource">Data Source</property>
<list-property name="resultSet">
<structure>
<property name="position">1</property>
<property name="name">LASTNAME</property>
<property name="nativeName">LASTNAME</property>
<property name="dataType">string</property>
<property name="nativeDataType">12</property>
</structure>
<structure>
<property name="position">2</property>
<property name="name">FIRSTNAME</property>
<property name="nativeName">FIRSTNAME</property>
<property name="dataType">string</property>
<property name="nativeDataType">12</property>
</structure>
</list-property>
<property name="queryText">select lastname, firstname
from employees</property>
</oda-data-set>
</data-sets>
<styles>
<style name="report" id="4">
<property name="fontFamily">"Verdana"</property>
<property name="fontSize">10pt</property>
</style>
<style name="crosstab-cell" id="5">
<property name="borderBottomColor">#CCCCCC</property>
<property name="borderBottomStyle">solid</property>
<property name="borderBottomWidth">1pt</property>
<property name="borderLeftColor">#CCCCCC</property>
<property name="borderLeftStyle">solid</property>
<property name="borderLeftWidth">1pt</property>
<property name="borderRightColor">#CCCCCC</property>
<property name="borderRightStyle">solid</property>
<property name="borderRightWidth">1pt</property>
<property name="borderTopColor">#CCCCCC</property>
<property name="borderTopStyle">solid</property>
<property name="borderTopWidth">1pt</property>
</style>
<style name="crosstab" id="6">
<property name="borderBottomColor">#CCCCCC</property>
<property name="borderBottomStyle">solid</property>
<property name="borderBottomWidth">1pt</property>
<property name="borderLeftColor">#CCCCCC</property>
<property name="borderLeftStyle">solid</property>
<property name="borderLeftWidth">1pt</property>
<property name="borderRightColor">#CCCCCC</property>
<property name="borderRightStyle">solid</property>
<property name="borderRightWidth">1pt</property>
<property name="borderTopColor">#CCCCCC</property>
<property name="borderTopStyle">solid</property>
<property name="borderTopWidth">1pt</property>
</style>
<style name="table" id="73">
<property name="fontFamily">"Arial"</property>
<property name="fontSize">10pt</property>
<property name="borderBottomColor">#CCCCCC</property>
<property name="borderBottomStyle">solid</property>
<property name="borderBottomWidth">1px</property>
<property name="borderLeftColor">#CCCCCC</property>
<property name="borderLeftStyle">solid</property>
<property name="borderLeftWidth">1px</property>
<property name="borderRightColor">#CCCCCC</property>
<property name="borderRightStyle">solid</property>
<property name="borderRightWidth">1px</property>
<property name="borderTopColor">#CCCCCC</property>
<property name="borderTopStyle">solid</property>
<property name="borderTopWidth">1px</property>
<property name="textAlign">left</property>
</style>
<style name="table-detail" id="74">
<property name="fontFamily">"Arial"</property>
<property name="fontWeight">normal</property>
<property name="fontSize">8pt</property>
<property name="color">blue</property>
<property name="borderBottomColor">#000000</property>
<property name="borderBottomStyle">solid</property>
<property name="borderBottomWidth">1px</property>
<property name="borderLeftColor">#000000</property>
<property name="borderLeftStyle">solid</property>
<property name="borderLeftWidth">1px</property>
<property name="borderRightColor">#000000</property>
<property name="borderRightStyle">solid</property>
<property name="borderRightWidth">1px</property>
<property name="borderTopColor">#000000</property>
<property name="borderTopStyle">solid</property>
<property name="borderTopWidth">1px</property>
<property name="textAlign">left</property>
</style>
<style name="table-footer" id="75">
<property name="backgroundColor">#FBF2F2</property>
<property name="fontFamily">"Arial"</property>
<property name="fontSize">10pt</property>
</style>
<style name="table-header" id="76">
<property name="backgroundColor">#E7E7E7</property>
<property name="color">red</property>
<property name="fontFamily">"Arial"</property>
<property name="fontSize">10pt</property>
<property name="fontWeight">bold</property>
<property name="borderBottomColor">#FFFFFF</property>
<property name="borderBottomStyle">solid</property>
<property name="borderBottomWidth">0px</property>
<property name="borderLeftColor">#FFFFFF</property>
<property name="borderLeftStyle">solid</property>
<property name="borderLeftWidth">1px</property>
<property name="borderRightColor">#FFFFFF</property>
<property name="borderRightStyle">solid</property>
<property name="borderRightWidth">0px</property>
<property name="borderTopColor">#FFFFFF</property>
<property name="borderTopStyle">solid</property>
<property name="borderTopWidth">0px</property>
</style>
</styles>
<page-setup>
<simple-master-page name="Simple MasterPage" id="2">
<property name="topMargin">0.25in</property>
<property name="leftMargin">0.25in</property>
<property name="bottomMargin">0.25in</property>
<property name="rightMargin">0.25in</property>
<page-footer>
<text id="3">
<property name="contentType">html</property>
<text-property name="content"><![CDATA[<value-of>new Date()</value-of>]]></text-property>
</text>
</page-footer>
</simple-master-page>
</page-setup>
<body>
<table id="174">
<property name="width">100%</property>
<property name="dataSet">Data Set</property>
<list-property name="boundDataColumns">
<structure>
<property name="name">LASTNAME</property>
<property name="displayName">LASTNAME</property>
<expression name="expression">dataSetRow["LASTNAME"]</expression>
<property name="dataType">string</property>
</structure>
<structure>
<property name="name">FIRSTNAME</property>
<property name="displayName">FIRSTNAME</property>
<expression name="expression">dataSetRow["FIRSTNAME"]</expression>
<property name="dataType">string</property>
</structure>
</list-property>
<column id="188"/>
<column id="189"/>
<header>
<row id="175">
<cell id="176">
<label id="177">
<text-property name="text">LASTNAME</text-property>
</label>
</cell>
<cell id="178">
<label id="179">
<text-property name="text">FIRSTNAME</text-property>
</label>
</cell>
</row>
</header>
<detail>
<row id="180">
<cell id="181">
<data id="182">
<property name="resultSetColumn">LASTNAME</property>
</data>
</cell>
<cell id="183">
<data id="184">
<property name="resultSetColumn">FIRSTNAME</property>
</data>
</cell>
</row>
</detail>
<footer>
<row id="185">
<cell id="186"/>
<cell id="187"/>
</row>
</footer>
</table>
</body>
</report>


thanks

[Updated on: Wed, 04 August 2010 09:45]

Report message to a moderator

Re: Table header/footer detail border [message #550892 is a reply to message #550763] Wed, 04 August 2010 14:52 Go to previous messageGo to next message
Jason Weathersby is currently offline Jason WeathersbyFriend
Messages: 9167
Registered: July 2009
Senior Member

Trevor,

This appears to be a bug. It is also appears to be a bug in 2.6. Can
you log the bug?

Jason

On 8/4/2010 5:45 AM, TREVOR.HIGGINS@FINEOS.COM wrote:
> Hi,
> I'm trying to change the inbuilt styles for a table so that I have a
> border around the table itself, the header, the footer and each table
> row (I know I can do this by editing the table itself but I want to
> change the styles as I will be exporting it to a library).
>
> I have changed the "table" style to give a border/text align which works
> fine. However when I edit "table-detail", "table-header" or
> "table-footer" to include a border, nothing happens! I can successfully
> change the font size/colour of these elements in the style, just not the
> border.
>
> I'm using BIRT 2.3.2 designer. Is this a bug or am I doing something
> wrong? Here is my report:
>
> <?xml version="1.0" encoding="UTF-8"?>
> <report xmlns="http://www.eclipse.org/birt/2005/design" version="3.2.17"
> id="1">
> <property name="createdBy">Eclipse BIRT Designer Version
> 2.3.2.r232_v20090521 Build <2.3.2.v20090601-0700></property>
> <property name="units">in</property>
> <property name="iconFile">/templates/blank_report.gif</property>
> <property name="bidiLayoutOrientation">ltr</property>
> <data-sources>
> <oda-data-source extensionID="org.eclipse.birt.report.data.oda.jdbc"
> name="Data Source" id="172">
> <property
> name="odaDriverClass">org.eclipse.birt.report.data.oda.sampledb.Driver
> </property>
> <property name="odaURL">jdbc:classicmodels:sampledb</property>
> <property name="odaUser">ClassicModels</property>
> <property name="OdaConnProfileName"></property>
> </oda-data-source>
> </data-sources>
> <data-sets>
> <oda-data-set
> extensionID="org.eclipse.birt.report.data.oda.jdbc.JdbcSelectDataSet "
> name="Data Set" id="173">
> <list-property name="columnHints">
> <structure>
> <property name="columnName">LASTNAME</property>
> <property name="displayName">LASTNAME</property>
> </structure>
> <structure>
> <property name="columnName">FIRSTNAME</property>
> <property name="displayName">FIRSTNAME</property>
> </structure>
> </list-property>
> <structure name="cachedMetaData">
> <list-property name="resultSet">
> <structure>
> <property name="position">1</property>
> <property name="name">LASTNAME</property>
> <property name="dataType">string</property>
> </structure>
> <structure>
> <property name="position">2</property>
> <property name="name">FIRSTNAME</property>
> <property name="dataType">string</property>
> </structure>
> </list-property>
> </structure>
> <property name="dataSource">Data Source</property>
> <list-property name="resultSet">
> <structure>
> <property name="position">1</property>
> <property name="name">LASTNAME</property>
> <property name="nativeName">LASTNAME</property>
> <property name="dataType">string</property>
> <property name="nativeDataType">12</property>
> </structure>
> <structure>
> <property name="position">2</property>
> <property name="name">FIRSTNAME</property>
> <property name="nativeName">FIRSTNAME</property>
> <property name="dataType">string</property>
> <property name="nativeDataType">12</property>
> </structure>
> </list-property>
> <property name="queryText">select lastname, firstname
> from employees</property>
> </oda-data-set>
> </data-sets>
> <styles>
> <style name="report" id="4">
> <property name="fontFamily">"Verdana"</property>
> <property name="fontSize">10pt</property>
> </style>
> <style name="crosstab-cell" id="5">
> <property name="borderBottomColor">#CCCCCC</property>
> <property name="borderBottomStyle">solid</property>
> <property name="borderBottomWidth">1pt</property>
> <property name="borderLeftColor">#CCCCCC</property>
> <property name="borderLeftStyle">solid</property>
> <property name="borderLeftWidth">1pt</property>
> <property name="borderRightColor">#CCCCCC</property>
> <property name="borderRightStyle">solid</property>
> <property name="borderRightWidth">1pt</property>
> <property name="borderTopColor">#CCCCCC</property>
> <property name="borderTopStyle">solid</property>
> <property name="borderTopWidth">1pt</property>
> </style>
> <style name="crosstab" id="6">
> <property name="borderBottomColor">#CCCCCC</property>
> <property name="borderBottomStyle">solid</property>
> <property name="borderBottomWidth">1pt</property>
> <property name="borderLeftColor">#CCCCCC</property>
> <property name="borderLeftStyle">solid</property>
> <property name="borderLeftWidth">1pt</property>
> <property name="borderRightColor">#CCCCCC</property>
> <property name="borderRightStyle">solid</property>
> <property name="borderRightWidth">1pt</property>
> <property name="borderTopColor">#CCCCCC</property>
> <property name="borderTopStyle">solid</property>
> <property name="borderTopWidth">1pt</property>
> </style>
> <style name="table" id="73">
> <property name="fontFamily">"Arial"</property>
> <property name="fontSize">10pt</property>
> <property name="borderBottomColor">#CCCCCC</property>
> <property name="borderBottomStyle">solid</property>
> <property name="borderBottomWidth">1px</property>
> <property name="borderLeftColor">#CCCCCC</property>
> <property name="borderLeftStyle">solid</property>
> <property name="borderLeftWidth">1px</property>
> <property name="borderRightColor">#CCCCCC</property>
> <property name="borderRightStyle">solid</property>
> <property name="borderRightWidth">1px</property>
> <property name="borderTopColor">#CCCCCC</property>
> <property name="borderTopStyle">solid</property>
> <property name="borderTopWidth">1px</property>
> <property name="textAlign">left</property> </style>
> <style name="table-detail" id="74">
> <property name="fontFamily">"Arial"</property>
> <property name="fontWeight">normal</property> <property
> name="fontSize">8pt</property>
> <property name="color">blue</property> <property
> name="borderBottomColor">#000000</property>
> <property name="borderBottomStyle">solid</property>
> <property name="borderBottomWidth">1px</property>
> <property name="borderLeftColor">#000000</property>
> <property name="borderLeftStyle">solid</property>
> <property name="borderLeftWidth">1px</property>
> <property name="borderRightColor">#000000</property>
> <property name="borderRightStyle">solid</property>
> <property name="borderRightWidth">1px</property>
> <property name="borderTopColor">#000000</property>
> <property name="borderTopStyle">solid</property>
> <property name="borderTopWidth">1px</property>
> <property name="textAlign">left</property> </style>
> <style name="table-footer" id="75">
> <property name="backgroundColor">#FBF2F2</property>
> <property name="fontFamily">"Arial"</property>
> <property name="fontSize">10pt</property>
> </style>
> <style name="table-header" id="76">
> <property name="backgroundColor">#E7E7E7</property>
> <property name="color">red</property> <property
> name="fontFamily">"Arial"</property>
> <property name="fontSize">10pt</property>
> <property name="fontWeight">bold</property>
> <property name="borderBottomColor">#FFFFFF</property>
> <property name="borderBottomStyle">solid</property>
> <property name="borderBottomWidth">0px</property>
> <property name="borderLeftColor">#FFFFFF</property>
> <property name="borderLeftStyle">solid</property>
> <property name="borderLeftWidth">1px</property>
> <property name="borderRightColor">#FFFFFF</property>
> <property name="borderRightStyle">solid</property>
> <property name="borderRightWidth">0px</property>
> <property name="borderTopColor">#FFFFFF</property>
> <property name="borderTopStyle">solid</property>
> <property name="borderTopWidth">0px</property>
> </style> </styles>
> <page-setup>
> <simple-master-page name="Simple MasterPage" id="2">
> <property name="topMargin">0.25in</property>
> <property name="leftMargin">0.25in</property>
> <property name="bottomMargin">0.25in</property>
> <property name="rightMargin">0.25in</property>
> <page-footer>
> <text id="3">
> <property name="contentType">html</property>
> <text-property name="content"><![CDATA[<value-of>new
> Date()</value-of>]]></text-property>
> </text>
> </page-footer>
> </simple-master-page>
> </page-setup>
> <body>
> <table id="174">
> <property name="width">100%</property>
> <property name="dataSet">Data Set</property>
> <list-property name="boundDataColumns">
> <structure>
> <property name="name">LASTNAME</property>
> <property name="displayName">LASTNAME</property>
> <expression name="expression">dataSetRow["LASTNAME"]</expression>
> <property name="dataType">string</property>
> </structure>
> <structure>
> <property name="name">FIRSTNAME</property>
> <property name="displayName">FIRSTNAME</property>
> <expression name="expression">dataSetRow["FIRSTNAME"]</expression>
> <property name="dataType">string</property>
> </structure>
> </list-property>
> <column id="188"/>
> <column id="189"/>
> <header>
> <row id="175">
> <cell id="176">
> <label id="177">
> <text-property name="text">LASTNAME</text-property>
> </label>
> </cell>
> <cell id="178">
> <label id="179">
> <text-property name="text">FIRSTNAME</text-property>
> </label>
> </cell>
> </row>
> </header>
> <detail>
> <row id="180">
> <cell id="181">
> <data id="182">
> <property name="resultSetColumn">LASTNAME</property>
> </data>
> </cell>
> <cell id="183">
> <data id="184">
> <property name="resultSetColumn">FIRSTNAME</property>
> </data>
> </cell>
> </row>
> </detail>
> <footer>
> <row id="185">
> <cell id="186"/>
> <cell id="187"/>
> </row>
> </footer>
> </table>
> </body>
> </report>
>
>
> thanks
Re: Table header/footer detail border [message #550951 is a reply to message #550892] Wed, 04 August 2010 16:44 Go to previous messageGo to next message
Missing name Missing name is currently offline Missing name Missing nameFriend
Messages: 94
Registered: November 2009
Member
Thanks Jason, bug logged: https:// bugs.eclipse.org/bugs/show_bug.cgi?id=321758&action=View
Re: Table header/footer detail border [message #550974 is a reply to message #550951] Wed, 04 August 2010 17:44 Go to previous message
Jason Weathersby is currently offline Jason WeathersbyFriend
Messages: 9167
Registered: July 2009
Senior Member

On 8/4/2010 12:44 PM, TREVOR.HIGGINS@FINEOS.COM wrote:
> Thanks Jason, bug logged:
> https://bugs.eclipse.org/bugs/show_bug.cgi?id=321758&act ion=View
Thanks Trevor
Previous Topic:Dynamic chart legend wrapping
Next Topic:Hiding a zero-length bars in a stacked bar chart
Goto Forum:
  


Current Time: Fri Mar 29 13:03:19 GMT 2024

Powered by FUDForum. Page generated in 0.02792 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top