Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » BIRT » Text Wrap and table lines
Text Wrap and table lines [message #550085] Thu, 29 July 2010 06:07 Go to next message
Prashant is currently offline PrashantFriend
Messages: 6
Registered: July 2010
Junior Member
Hi,

I am unable to wrap text data in my table. The data is truncated. I heard text is wrapped by default. I am using Birt 2.6 version.
Also, i would like to have grid lines in my table for each row data .

<?xml version="1.0" encoding="UTF-8"?>
<report xmlns="http://www.eclipse.org/birt/2005/design" version="3.2.21" id="1">
<property name="createdBy">Eclipse BIRT Designer Version 2.6.0.v20100531 Build &lt;2.6.0.v20100609-1613></property>
<property name="units">in</property>
<property name="iconFile">/templates/first_report.gif</property>
<property name="cheatSheet">org.eclipse.birt.report.designer.ui.cheatsheet.firstreport </property>
<property name="bidiLayoutOrientation">ltr</property>
<property name="imageDPI">96</property>
<data-sources>
<oda-data-source extensionID="org.eclipse.birt.report.data.oda.jdbc" name="MySQL Data Source" id="248">
<list-property name="privateDriverProperties">
<ex-property>
<name>contentBidiFormatStr</name>
<value>ILYNN</value>
</ex-property>
<ex-property>
<name>metadataBidiFormatStr</name>
<value>ILYNN</value>
</ex-property>
</list-property>
<property name="odaDriverClass">com.mysql.jdbc.Driver</property>
<property name="odaURL">jdbc:mysql://localhost:3306/test</property>
<property name="odaUser">root</property>
<encrypted-property name="odaPassword" encryptionID="base64">YWRtaW4=</encrypted-property>
</oda-data-source>
</data-sources>
<data-sets>
<oda-data-set extensionID="org.eclipse.birt.report.data.oda.jdbc.JdbcSelectDataSet " name="Department Data Set" id="249">
<list-property name="columnHints">
<structure>
<property name="columnName">deptid</property>
<text-property name="displayName">deptid</text-property>
<text-property name="heading">deptid</text-property>
<property name="displayLength">11</property>
<property name="horizontalAlign">justify</property>
<property name="wordWrap">false</property>
</structure>
<structure>
<property name="columnName">deptname</property>
<text-property name="displayName">deptname</text-property>
<text-property name="heading">deptname</text-property>
<property name="displayLength">255</property>
<property name="horizontalAlign">justify</property>
<property name="wordWrap">false</property>
</structure>
</list-property>
<structure name="cachedMetaData">
<list-property name="resultSet">
<structure>
<property name="position">1</property>
<property name="name">deptid</property>
<property name="dataType">integer</property>
</structure>
<structure>
<property name="position">2</property>
<property name="name">deptname</property>
<property name="dataType">string</property>
</structure>
</list-property>
</structure>
<property name="dataSource">MySQL Data Source</property>
<list-property name="resultSet">
<structure>
<property name="position">1</property>
<property name="name">deptid</property>
<property name="nativeName">deptid</property>
<property name="dataType">integer</property>
</structure>
<structure>
<property name="position">2</property>
<property name="name">deptname</property>
<property name="nativeName">deptname</property>
<property name="dataType">string</property>
</structure>
</list-property>
<xml-property name="queryText"><![CDATA[select *
from department]]></xml-property>
</oda-data-set>
</data-sets>
<styles>
<style name="report" id="110">
<property name="fontFamily">sans-serif</property>
<property name="fontSize">10pt</property>
</style>
<style name="crosstab" id="246">
<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-cell" id="247">
<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>
</styles>
<page-setup>
<simple-master-page name="Simple MasterPage" id="2">
<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>
<label id="245">
<property name="fontFamily">sans-serif</property>
<property name="fontSize">x-large</property>
<property name="fontWeight">bold</property>
<property name="marginTop">auto</property>
<property name="marginLeft">auto</property>
<property name="marginBottom">auto</property>
<property name="marginRight">auto</property>
<property name="textAlign">center</property>
<text-property name="text">Department Listing</text-property>
</label>
<table id="269">
<property name="borderBottomColor">#000000</property>
<property name="borderBottomStyle">solid</property>
<property name="borderBottomWidth">medium</property>
<property name="borderLeftColor">#000000</property>
<property name="borderLeftStyle">solid</property>
<property name="borderLeftWidth">medium</property>
<property name="borderRightColor">#000000</property>
<property name="borderRightStyle">solid</property>
<property name="borderRightWidth">medium</property>
<property name="borderTopColor">#000000</property>
<property name="borderTopStyle">solid</property>
<property name="borderTopWidth">medium</property>
<property name="marginTop">auto</property>
<property name="marginLeft">auto</property>
<property name="marginBottom">auto</property>
<property name="marginRight">auto</property>
<property name="textTransform">none</property>
<property name="display">block</property>
<property name="canShrink">false</property>
<property name="width">5.958333333333333in</property>
<property name="dataSet">Department Data Set</property>
<list-property name="boundDataColumns">
<structure>
<property name="name">deptid</property>
<text-property name="displayName">deptid</text-property>
<expression name="expression" type="javascript">dataSetRow["deptid"]</expression>
<property name="dataType">integer</property>
</structure>
<structure>
<property name="name">deptname</property>
<text-property name="displayName">deptname</text-property>
<expression name="expression" type="javascript">dataSetRow["deptname"]</expression>
<property name="dataType">string</property>
</structure>
</list-property>
<structure name="toc"/>
<column id="279">
<property name="width">3.9791666666666665in</property>
</column>
<column id="280">
<property name="width">1.979in</property>
<property name="marginTop">0pt</property>
<property name="marginLeft">0pt</property>
<property name="marginRight">0pt</property>
<property name="textAlign">left</property>
<property name="whiteSpace">normal</property>
<property name="canShrink">false</property>
<property name="overflow">auto</property>
</column>
<header>
<row id="270">
<property name="borderBottomColor">#000000</property>
<property name="borderBottomStyle">solid</property>
<property name="borderBottomWidth">medium</property>
<property name="borderLeftColor">#000000</property>
<property name="borderLeftStyle">solid</property>
<property name="borderLeftWidth">medium</property>
<property name="borderRightColor">#000000</property>
<property name="borderRightStyle">solid</property>
<property name="borderRightWidth">medium</property>
<property name="borderTopColor">#000000</property>
<property name="borderTopStyle">solid</property>
<property name="borderTopWidth">medium</property>
<property name="whiteSpace">normal</property>
<property name="canShrink">false</property>
<cell id="271">
<text id="281">
<property name="contentType">auto</property>
<text-property name="content"><![CDATA[Department Id]]></text-property>
</text>
</cell>
<cell id="272">
<text id="282">
<property name="contentType">auto</property>
<text-property name="content"><![CDATA[Department Name]]></text-property>
</text>
</cell>
</row>
</header>
<detail>
<row id="273">
<cell id="274">
<data id="299">
<property name="whiteSpace">nowrap</property>
<property name="resultSetColumn">deptid</property>
</data>
</cell>
<cell id="275">
<data id="301">
<property name="whiteSpace">nowrap</property>
<property name="resultSetColumn">deptname</property>
</data>
</cell>
</row>
</detail>
<footer>
<row id="276">
<cell id="277"/>
<cell id="278"/>
</row>
</footer>
</table>
</body>
</report>


Regards,
Prashant
Re: Text Wrap and table lines [message #550103 is a reply to message #550085] Thu, 29 July 2010 07:23 Go to previous messageGo to next message
Jing  is currently offline Jing Friend
Messages: 2
Registered: July 2010
Junior Member
Thanks so much, using the hyperlink property worked, however I noticed Eclipse was defaulting the type in expression not as javascript if I just entered the expression, hence why I couldn't get it working via the hyperlink even I read about doing it that way.

Looks like was a silly mistake from my end for not entering it via the javascript syntax area! Surprised
Re: Text Wrap and table lines [message #757202 is a reply to message #550085] Thu, 17 November 2011 04:50 Go to previous message
Arati Patro is currently offline Arati PatroFriend
Messages: 1
Registered: November 2011
Junior Member
A late reply. But I recently figured that you have to go to the Outline Panel of the report design. Go to style and edit styles for cross-tabs or tables.(Headers or detail cells). The grid lines will appear,
Previous Topic:Locating BIRT 3.7.1 Source Code
Next Topic:Can't save .rptdesign file with chart
Goto Forum:
  


Current Time: Fri Apr 19 20:40:21 GMT 2024

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

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

Back to the top