Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » BIRT » onRender in table-header
onRender in table-header [message #639911] Thu, 18 November 2010 06:48 Go to next message
No real name is currently offline No real name
Messages: 11
Registered: August 2010
Junior Member
Hi,

I tried to get my report to display something like that:

Entry 1 this is the table-header page 1/2
...
<pagebreak (content to long for one page)>
Entry 1 this is the table-header page 2/2
...
<pagebreak (pb-interval = 1)>
Entry 2 this is the table-header page 1/1
...

the calculation of the pagenumber is no problem, but the onrender-method of my dynamicText (or lable or textfield) isn't called for every page. It's called only once (using table-header) or only for every group (group-header).

how can I enforce birt to rerender the header for every page?

here's a small sample report to show the structure of my report:

<?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>
<html-property name="description">Vorlage für die Erstellung von Listen aus more.</html-property>
<property name="units">cm</property>
<text-property name="displayName">Report_Liste</text-property>
<property name="iconFile">/templates/blank_report.gif</property>
<property name="layoutPreference">fixed layout</property>
<property name="bidiLayoutOrientation">ltr</property>
<property name="imageDPI">96</property>
<list-property name="cssStyleSheets">
<structure>
<property name="fileName">Standard.css</property>
</structure>
</list-property>
<data-sources>
<oda-data-source extensionID="org.eclipse.birt.report.data.oda.jdbc" name="Data Source" id="3062">
<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">org.eclipse.birt.report.data.oda.sampledb.Driver </property>
<property name="odaURL">jdbc:classicmodels:sampledb</property>
<property name="odaUser">ClassicModels</property>
</oda-data-source>
</data-sources>
<data-sets>
<oda-data-set extensionID="org.eclipse.birt.report.data.oda.jdbc.JdbcSelectDataSet " name="Data Set" id="3063">
<list-property name="columnHints">
<structure>
<property name="columnName">ORDERNUMBER</property>
<text-property name="displayName">ORDERNUMBER</text-property>
<text-property name="heading">ORDERNUMBER</text-property>
<property name="displayLength">11</property>
<property name="horizontalAlign">justify</property>
<property name="wordWrap">false</property>
</structure>
<structure>
<property name="columnName">ORDERDATE</property>
<text-property name="displayName">ORDERDATE</text-property>
<text-property name="heading">ORDERDATE</text-property>
<property name="displayLength">10</property>
<property name="horizontalAlign">justify</property>
<property name="wordWrap">false</property>
</structure>
<structure>
<property name="columnName">REQUIREDDATE</property>
<text-property name="displayName">REQUIREDDATE</text-property>
<text-property name="heading">REQUIREDDATE</text-property>
<property name="displayLength">10</property>
<property name="horizontalAlign">justify</property>
<property name="wordWrap">false</property>
</structure>
<structure>
<property name="columnName">SHIPPEDDATE</property>
<text-property name="displayName">SHIPPEDDATE</text-property>
<text-property name="heading">SHIPPEDDATE</text-property>
<property name="displayLength">10</property>
<property name="horizontalAlign">justify</property>
<property name="wordWrap">false</property>
</structure>
<structure>
<property name="columnName">STATUS</property>
<text-property name="displayName">STATUS</text-property>
<text-property name="heading">STATUS</text-property>
<property name="displayLength">15</property>
<property name="horizontalAlign">justify</property>
<property name="wordWrap">false</property>
</structure>
<structure>
<property name="columnName">COMMENTS</property>
<text-property name="displayName">COMMENTS</text-property>
<text-property name="heading">COMMENTS</text-property>
<property name="displayLength">32700</property>
<property name="horizontalAlign">justify</property>
<property name="wordWrap">false</property>
</structure>
<structure>
<property name="columnName">CUSTOMERNUMBER</property>
<text-property name="displayName">CUSTOMERNUMBER</text-property>
<text-property name="heading">CUSTOMERNUMBER</text-property>
<property name="displayLength">11</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">ORDERNUMBER</property>
<property name="dataType">integer</property>
</structure>
<structure>
<property name="position">2</property>
<property name="name">ORDERDATE</property>
<property name="dataType">date</property>
</structure>
<structure>
<property name="position">3</property>
<property name="name">REQUIREDDATE</property>
<property name="dataType">date</property>
</structure>
<structure>
<property name="position">4</property>
<property name="name">SHIPPEDDATE</property>
<property name="dataType">date</property>
</structure>
<structure>
<property name="position">5</property>
<property name="name">STATUS</property>
<property name="dataType">string</property>
</structure>
<structure>
<property name="position">6</property>
<property name="name">COMMENTS</property>
<property name="dataType">string</property>
</structure>
<structure>
<property name="position">7</property>
<property name="name">CUSTOMERNUMBER</property>
<property name="dataType">integer</property>
</structure>
</list-property>
</structure>
<property name="rowFetchLimit">5</property>
<property name="dataSource">Data Source</property>
<list-property name="resultSet">
<structure>
<property name="position">1</property>
<property name="name">ORDERNUMBER</property>
<property name="nativeName">ORDERNUMBER</property>
<property name="dataType">integer</property>
</structure>
<structure>
<property name="position">2</property>
<property name="name">ORDERDATE</property>
<property name="nativeName">ORDERDATE</property>
<property name="dataType">date</property>
</structure>
<structure>
<property name="position">3</property>
<property name="name">REQUIREDDATE</property>
<property name="nativeName">REQUIREDDATE</property>
<property name="dataType">date</property>
</structure>
<structure>
<property name="position">4</property>
<property name="name">SHIPPEDDATE</property>
<property name="nativeName">SHIPPEDDATE</property>
<property name="dataType">date</property>
</structure>
<structure>
<property name="position">5</property>
<property name="name">STATUS</property>
<property name="nativeName">STATUS</property>
<property name="dataType">string</property>
</structure>
<structure>
<property name="position">6</property>
<property name="name">COMMENTS</property>
<property name="nativeName">COMMENTS</property>
<property name="dataType">string</property>
</structure>
<structure>
<property name="position">7</property>
<property name="name">CUSTOMERNUMBER</property>
<property name="nativeName">CUSTOMERNUMBER</property>
<property name="dataType">integer</property>
</structure>
</list-property>
<xml-property name="queryText"><![CDATA[select ORDERS.*
from ORDERS]]></xml-property>
</oda-data-set>
</data-sets>
<styles>
<style name="DateTime_dd_MM_yyyy" id="2457">
<structure name="dateTimeFormat">
<property name="category">Custom</property>
<property name="pattern">dd.MM.yyyy</property>
</structure>
</style>
<style name="DateTime_dd_MM_yyyy_dy" id="2451">
<structure name="dateTimeFormat">
<property name="category">Custom</property>
<property name="pattern">dd.MM.yyyy EE</property>
</structure>
</style>
<style name="DateTime_dd_MM_yyyy_hh_mm" id="2459">
<structure name="dateTimeFormat">
<property name="category">Custom</property>
<property name="pattern">dd.MM.yyyy HH:mm</property>
</structure>
</style>
<style name="DateTime_dd_dy" id="2458">
<structure name="dateTimeFormat">
<property name="category">Custom</property>
<property name="pattern">dd. EE</property>
</structure>
</style>
<style name="Decimal_9G990" id="2452">
<structure name="numberFormat">
<property name="category">Fixed</property>
<property name="pattern">#,##0</property>
</structure>
<property name="textAlign">right</property>
</style>
<style name="Decimal_9G990D9" id="2453">
<structure name="numberFormat">
<property name="category">Fixed</property>
<property name="pattern">#,##0.0</property>
</structure>
<property name="textAlign">right</property>
</style>
<style name="Decimal_9G990D99" id="2454">
<structure name="numberFormat">
<property name="category">Fixed</property>
<property name="pattern">#,##0.00</property>
</structure>
<property name="textAlign">right</property>
</style>
<style name="Decimal_9G990D999" id="2455">
<structure name="numberFormat">
<property name="category">Fixed</property>
<property name="pattern">#,##0.000</property>
</structure>
<property name="textAlign">right</property>
</style>
<style name="Decimal_9G990D9999" id="2456">
<structure name="numberFormat">
<property name="category">Fixed</property>
<property name="pattern">#,##0.0000</property>
</structure>
<property name="textAlign">right</property>
</style>
<style name="Decimal_9990" id="2461">
<structure name="numberFormat">
<property name="category">Fixed</property>
<property name="pattern">###0</property>
</structure>
<property name="textAlign">right</property>
</style>
<style name="Decimal_9990D9" id="2462">
<structure name="numberFormat">
<property name="category">Fixed</property>
<property name="pattern">###0.0</property>
</structure>
<property name="textAlign">right</property>
</style>
<style name="Decimal_9990D99" id="2463">
<structure name="numberFormat">
<property name="category">Fixed</property>
<property name="pattern">###0.00</property>
</structure>
<property name="textAlign">right</property>
</style>
<style name="Decimal_9990D999" id="2464">
<structure name="numberFormat">
<property name="category">Fixed</property>
<property name="pattern">###0.000</property>
</structure>
<property name="textAlign">right</property>
</style>
<style name="Decimal_9990D9999" id="2465">
<structure name="numberFormat">
<property name="category">Fixed</property>
<property name="pattern">###0.0000</property>
</structure>
<property name="textAlign">right</property>
</style>
<style name="Empty" id="2466">
<property name="backgroundColor">#FFFFFF</property>
<property name="borderBottomWidth">0pt</property>
<property name="borderLeftWidth">0pt</property>
<property name="borderRightWidth">0pt</property>
<property name="borderTopWidth">0pt</property>
</style>
<style name="NoBorder" id="3060">
<property name="borderBottomWidth">0pt</property>
<property name="borderLeftWidth">0pt</property>
<property name="borderRightWidth">0pt</property>
<property name="borderTopWidth">0pt</property>
</style>
<style name="DateTime_h12_mm" id="2467">
<structure name="dateTimeFormat">
<property name="category">Custom</property>
<property name="pattern">hh:mm</property>
</structure>
</style>
<style name="DateTime_h24_mm" id="3059">
<structure name="dateTimeFormat">
<property name="category">Custom</property>
<property name="pattern">HH:mm</property>
</structure>
</style>
<style name="NoPadding" id="2932">
<property name="paddingTop">0pt</property>
<property name="paddingLeft">0pt</property>
<property name="paddingBottom">0pt</property>
<property name="paddingRight">0pt</property>
</style>
</styles>
<page-setup>
<simple-master-page name="MasterPage" id="2"/>
</page-setup>
<body>
<table id="3300">
<property name="dataSet">Data Set</property>
<list-property name="boundDataColumns">
<structure>
<property name="name">ORDERNUMBER</property>
<text-property name="displayName">ORDERNUMBER</text-property>
<expression name="expression" type="javascript">dataSetRow["ORDERNUMBER"]</expression >
<property name="dataType">integer</property>
</structure>
<structure>
<property name="name">ORDERDATE</property>
<text-property name="displayName">ORDERDATE</text-property>
<expression name="expression" type="javascript">dataSetRow["ORDERDATE"]</expression>
<property name="dataType">date</property>
</structure>
<structure>
<property name="name">REQUIREDDATE</property>
<text-property name="displayName">REQUIREDDATE</text-property>
<expression name="expression" type="javascript">dataSetRow["REQUIREDDATE"]</expression >
<property name="dataType">date</property>
</structure>
<structure>
<property name="name">SHIPPEDDATE</property>
<text-property name="displayName">SHIPPEDDATE</text-property>
<expression name="expression" type="javascript">dataSetRow["SHIPPEDDATE"]</expression >
<property name="dataType">date</property>
</structure>
<structure>
<property name="name">STATUS</property>
<text-property name="displayName">STATUS</text-property>
<expression name="expression" type="javascript">dataSetRow["STATUS"]</expression>
<property name="dataType">string</property>
</structure>
<structure>
<property name="name">COMMENTS</property>
<text-property name="displayName">COMMENTS</text-property>
<expression name="expression" type="javascript">dataSetRow["COMMENTS"]</expression>
<property name="dataType">string</property>
</structure>
<structure>
<property name="name">CUSTOMERNUMBER</property>
<text-property name="displayName">CUSTOMERNUMBER</text-property>
<expression name="expression" type="javascript">dataSetRow["CUSTOMERNUMBER"]</expression >
<property name="dataType">integer</property>
</structure>
</list-property>
<property name="pageBreakInterval">1</property>
<column id="3339"/>
<column id="3340"/>
<column id="3341"/>
<header>
<row id="3301">
<cell id="3302">
<label id="3399">
<text-property name="text">ORDERNUMBER (Header):</text-property>
</label>
</cell>
<cell id="3304">
<data id="3318">
<property name="whiteSpace">nowrap</property>
<property name="resultSetColumn">ORDERNUMBER</property>
</data>
</cell>
<cell id="3306">
<grid id="3400">
<column id="3401"/>
<column id="3402"/>
<column id="3403"/>
<row id="3404">
<cell id="3405">
<auto-text id="3406">
<property name="type">page-number</property>
</auto-text>
</cell>
<cell id="3407">
<text id="3408">
<property name="contentType">plain</property>
<text-property name="content"><![CDATA[/]]></text-property>
</text>
</cell>
<cell id="3409">
<auto-text id="3410">
<property name="type">total-page</property>
</auto-text>
</cell>
</row>
</grid>
</cell>
</row>
</header>
<group id="3411">
<property name="groupName">NewTableGroup1</property>
<property name="interval">none</property>
<property name="sortDirection">asc</property>
<expression name="keyExpr" type="javascript">row["ORDERNUMBER"]</expression>
<structure name="toc">
<expression name="expressionValue" type="javascript">row["ORDERNUMBER"]</expression>
</structure>
<property name="repeatHeader">true</property>
<property name="hideDetail">false</property>
<property name="pageBreakAfter">auto</property>
<property name="pageBreakBefore">auto</property>
<property name="pageBreakInside">auto</property>
<header>
<row id="3412">
<cell id="3413">
<label id="3398">
<text-property name="text">ORDERNUMBER (Groupheader):</text-property>
</label>
</cell>
<cell id="3414">
<data id="3421">
<property name="whiteSpace">nowrap</property>
<property name="resultSetColumn">ORDERNUMBER</property>
</data>
</cell>
<cell id="3415">
<grid id="3422">
<column id="3423"/>
<column id="3424"/>
<column id="3425"/>
<row id="3426">
<cell id="3427">
<auto-text id="3428">
<property name="type">page-number</property>
</auto-text>
</cell>
<cell id="3429">
<text id="3430">
<property name="contentType">plain</property>
<text-property name="content"><![CDATA[/]]></text-property>
</text>
</cell>
<cell id="3431">
<auto-text id="3432">
<property name="type">total-page</property>
</auto-text>
</cell>
</row>
</grid>
</cell>
</row>
</header>
<footer>
<row id="3416">
<cell id="3417"/>
<cell id="3418"/>
<cell id="3419"/>
</row>
</footer>
</group>
<detail>
<row id="3386">
<property name="pageBreakInside">auto</property>
<cell id="3387">
<label id="3396">
<text-property name="text">TEXT</text-property>
</label>
</cell>
<cell id="3388">
<text id="3390">
<property name="contentType">auto</property>
<text-property name="content"><![CDATA[some text
some text
some text
some text
some text
some text
some text
some text
some text
some text
some text
some text
some text
some text
some text
some text
some text
some text
some text
some text
some text
some text
some text
some text]]></text-property>
</text>
</cell>
<cell id="3389"/>
</row>
<row id="3316">
<cell id="3317">
<label id="3305">
<text-property name="text">ORDERDATE</text-property>
</label>
</cell>
<cell id="3319">
<data id="3320">
<property name="whiteSpace">nowrap</property>
<property name="resultSetColumn">ORDERDATE</property>
</data>
</cell>
<cell id="3321"/>
</row>
<row id="3346">
<cell id="3347">
<label id="3307">
<text-property name="text">REQUIREDDATE</text-property>
</label>
</cell>
<cell id="3348">
<data id="3322">
<property name="whiteSpace">nowrap</property>
<property name="resultSetColumn">REQUIREDDATE</property>
</data>
</cell>
<cell id="3349"/>
</row>
<row id="3378">
<cell id="3379">
<label id="3309">
<text-property name="text">SHIPPEDDATE</text-property>
</label>
</cell>
<cell id="3380">
<data id="3324">
<property name="whiteSpace">nowrap</property>
<property name="resultSetColumn">SHIPPEDDATE</property>
</data>
</cell>
<cell id="3381"/>
</row>
<row id="3370">
<cell id="3371">
<label id="3311">
<text-property name="text">STATUS</text-property>
</label>
</cell>
<cell id="3372">
<data id="3326">
<property name="whiteSpace">nowrap</property>
<property name="resultSetColumn">STATUS</property>
</data>
</cell>
<cell id="3373"/>
</row>
<row id="3362">
<cell id="3363">
<label id="3313">
<text-property name="text">COMMENTS</text-property>
</label>
</cell>
<cell id="3364">
<data id="3328">
<property name="whiteSpace">nowrap</property>
<property name="resultSetColumn">COMMENTS</property>
</data>
</cell>
<cell id="3365"/>
</row>
<row id="3354">
<cell id="3355">
<label id="3315">
<text-property name="text">CUSTOMERNUMBER</text-property>
</label>
</cell>
<cell id="3356">
<data id="3330">
<property name="whiteSpace">nowrap</property>
<property name="resultSetColumn">CUSTOMERNUMBER</property>
</data>
</cell>
<cell id="3357"/>
</row>
<row id="3391">
<property name="pageBreakInside">auto</property>
<cell id="3392">
<label id="3397">
<text-property name="text">TEXT</text-property>
</label>
</cell>
<cell id="3393">
<text id="3395">
<property name="contentType">auto</property>
<text-property name="content"><![CDATA[some text
some text
some text
some text
some text
some text
some text
some text
some text
some text
some text
some text
some text
some text
some text
some text
some text
some text
some text
some text
some text
some text
some text
some text]]></text-property>
</text>
</cell>
<cell id="3394"/>
</row>
</detail>
</table>
</body>
</report>
Re: onRender in table-header [message #639985 is a reply to message #639911] Thu, 18 November 2010 10:38 Go to previous messageGo to next message
Jason Weathersby is currently offline Jason Weathersby
Messages: 9167
Registered: July 2009
Senior Member

Peter

Auto Text fields should only be used on the master page. I believe this
is still a bug because you should be able to use viewtime-value-of
syntax in a text element. And it works in HTML but if you export to PDF
it will fail. I have logged a bug:
https://bugs.eclipse.org/bugs/show_bug.cgi?id=330577

You may want to look at the example report (2.6.1) because it does group
pagination in the master page and it appears to work.

Jason

On 11/18/2010 6:48 AM, peter@pilgerstorfer.at wrote:
> Hi,
>
> I tried to get my report to display something like that:
>
> Entry 1 this is the table-header page 1/2
> ...
> <pagebreak (content to long for one page)>
> Entry 1 this is the table-header page 2/2
> ...
> <pagebreak (pb-interval = 1)>
> Entry 2 this is the table-header page 1/1
> ...
>
> the calculation of the pagenumber is no problem, but the onrender-method
> of my dynamicText (or lable or textfield) isn't called for every page.
> It's called only once (using table-header) or only for every group
> (group-header).
>
> how can I enforce birt to rerender the header for every page?
>
> here's a small sample report to show the structure of my report:
>
> <?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 <2.6.0.v20100609-1613></property>
> <html-property name="description">Vorlage für die Erstellung von Listen
> aus more.</html-property>
> <property name="units">cm</property>
> <text-property name="displayName">Report_Liste</text-property>
> <property name="iconFile">/templates/blank_report.gif</property>
> <property name="layoutPreference">fixed layout</property>
> <property name="bidiLayoutOrientation">ltr</property>
> <property name="imageDPI">96</property>
> <list-property name="cssStyleSheets">
> <structure>
> <property name="fileName">Standard.css</property>
> </structure>
> </list-property>
> <data-sources>
> <oda-data-source extensionID="org.eclipse.birt.report.data.oda.jdbc"
> name="Data Source" id="3062">
> <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">org.eclipse.birt.report.data.oda.sampledb.Driver
> </property>
> <property name="odaURL">jdbc:classicmodels:sampledb</property>
> <property name="odaUser">ClassicModels</property>
> </oda-data-source>
> </data-sources>
> <data-sets>
> <oda-data-set
> extensionID="org.eclipse.birt.report.data.oda.jdbc.JdbcSelectDataSet "
> name="Data Set" id="3063">
> <list-property name="columnHints">
> <structure>
> <property name="columnName">ORDERNUMBER</property>
> <text-property name="displayName">ORDERNUMBER</text-property>
> <text-property name="heading">ORDERNUMBER</text-property>
> <property name="displayLength">11</property>
> <property name="horizontalAlign">justify</property>
> <property name="wordWrap">false</property>
> </structure>
> <structure>
> <property name="columnName">ORDERDATE</property>
> <text-property name="displayName">ORDERDATE</text-property>
> <text-property name="heading">ORDERDATE</text-property>
> <property name="displayLength">10</property>
> <property name="horizontalAlign">justify</property>
> <property name="wordWrap">false</property>
> </structure>
> <structure>
> <property name="columnName">REQUIREDDATE</property>
> <text-property name="displayName">REQUIREDDATE</text-property>
> <text-property name="heading">REQUIREDDATE</text-property>
> <property name="displayLength">10</property>
> <property name="horizontalAlign">justify</property>
> <property name="wordWrap">false</property>
> </structure>
> <structure>
> <property name="columnName">SHIPPEDDATE</property>
> <text-property name="displayName">SHIPPEDDATE</text-property>
> <text-property name="heading">SHIPPEDDATE</text-property>
> <property name="displayLength">10</property>
> <property name="horizontalAlign">justify</property>
> <property name="wordWrap">false</property>
> </structure>
> <structure>
> <property name="columnName">STATUS</property>
> <text-property name="displayName">STATUS</text-property>
> <text-property name="heading">STATUS</text-property>
> <property name="displayLength">15</property>
> <property name="horizontalAlign">justify</property>
> <property name="wordWrap">false</property>
> </structure>
> <structure>
> <property name="columnName">COMMENTS</property>
> <text-property name="displayName">COMMENTS</text-property>
> <text-property name="heading">COMMENTS</text-property>
> <property name="displayLength">32700</property>
> <property name="horizontalAlign">justify</property>
> <property name="wordWrap">false</property>
> </structure>
> <structure>
> <property name="columnName">CUSTOMERNUMBER</property>
> <text-property name="displayName">CUSTOMERNUMBER</text-property>
> <text-property name="heading">CUSTOMERNUMBER</text-property>
> <property name="displayLength">11</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">ORDERNUMBER</property>
> <property name="dataType">integer</property>
> </structure>
> <structure>
> <property name="position">2</property>
> <property name="name">ORDERDATE</property>
> <property name="dataType">date</property>
> </structure>
> <structure>
> <property name="position">3</property>
> <property name="name">REQUIREDDATE</property>
> <property name="dataType">date</property>
> </structure>
> <structure>
> <property name="position">4</property>
> <property name="name">SHIPPEDDATE</property>
> <property name="dataType">date</property>
> </structure>
> <structure>
> <property name="position">5</property>
> <property name="name">STATUS</property>
> <property name="dataType">string</property>
> </structure>
> <structure>
> <property name="position">6</property>
> <property name="name">COMMENTS</property>
> <property name="dataType">string</property>
> </structure>
> <structure>
> <property name="position">7</property>
> <property name="name">CUSTOMERNUMBER</property>
> <property name="dataType">integer</property>
> </structure>
> </list-property>
> </structure>
> <property name="rowFetchLimit">5</property>
> <property name="dataSource">Data Source</property>
> <list-property name="resultSet">
> <structure>
> <property name="position">1</property>
> <property name="name">ORDERNUMBER</property>
> <property name="nativeName">ORDERNUMBER</property>
> <property name="dataType">integer</property>
> </structure>
> <structure>
> <property name="position">2</property>
> <property name="name">ORDERDATE</property>
> <property name="nativeName">ORDERDATE</property>
> <property name="dataType">date</property>
> </structure>
> <structure>
> <property name="position">3</property>
> <property name="name">REQUIREDDATE</property>
> <property name="nativeName">REQUIREDDATE</property>
> <property name="dataType">date</property>
> </structure>
> <structure>
> <property name="position">4</property>
> <property name="name">SHIPPEDDATE</property>
> <property name="nativeName">SHIPPEDDATE</property>
> <property name="dataType">date</property>
> </structure>
> <structure>
> <property name="position">5</property>
> <property name="name">STATUS</property>
> <property name="nativeName">STATUS</property>
> <property name="dataType">string</property>
> </structure>
> <structure>
> <property name="position">6</property>
> <property name="name">COMMENTS</property>
> <property name="nativeName">COMMENTS</property>
> <property name="dataType">string</property>
> </structure>
> <structure>
> <property name="position">7</property>
> <property name="name">CUSTOMERNUMBER</property>
> <property name="nativeName">CUSTOMERNUMBER</property>
> <property name="dataType">integer</property>
> </structure>
> </list-property>
> <xml-property name="queryText"><![CDATA[select ORDERS.*
> from ORDERS]]></xml-property>
> </oda-data-set>
> </data-sets>
> <styles>
> <style name="DateTime_dd_MM_yyyy" id="2457">
> <structure name="dateTimeFormat">
> <property name="category">Custom</property>
> <property name="pattern">dd.MM.yyyy</property>
> </structure>
> </style>
> <style name="DateTime_dd_MM_yyyy_dy" id="2451">
> <structure name="dateTimeFormat">
> <property name="category">Custom</property>
> <property name="pattern">dd.MM.yyyy EE</property>
> </structure>
> </style>
> <style name="DateTime_dd_MM_yyyy_hh_mm" id="2459">
> <structure name="dateTimeFormat">
> <property name="category">Custom</property>
> <property name="pattern">dd.MM.yyyy HH:mm</property>
> </structure>
> </style>
> <style name="DateTime_dd_dy" id="2458">
> <structure name="dateTimeFormat">
> <property name="category">Custom</property>
> <property name="pattern">dd. EE</property>
> </structure>
> </style>
> <style name="Decimal_9G990" id="2452">
> <structure name="numberFormat">
> <property name="category">Fixed</property>
> <property name="pattern">#,##0</property>
> </structure>
> <property name="textAlign">right</property>
> </style>
> <style name="Decimal_9G990D9" id="2453">
> <structure name="numberFormat">
> <property name="category">Fixed</property>
> <property name="pattern">#,##0.0</property>
> </structure>
> <property name="textAlign">right</property>
> </style>
> <style name="Decimal_9G990D99" id="2454">
> <structure name="numberFormat">
> <property name="category">Fixed</property>
> <property name="pattern">#,##0.00</property>
> </structure>
> <property name="textAlign">right</property>
> </style>
> <style name="Decimal_9G990D999" id="2455">
> <structure name="numberFormat">
> <property name="category">Fixed</property>
> <property name="pattern">#,##0.000</property>
> </structure>
> <property name="textAlign">right</property>
> </style>
> <style name="Decimal_9G990D9999" id="2456">
> <structure name="numberFormat">
> <property name="category">Fixed</property>
> <property name="pattern">#,##0.0000</property>
> </structure>
> <property name="textAlign">right</property>
> </style>
> <style name="Decimal_9990" id="2461">
> <structure name="numberFormat">
> <property name="category">Fixed</property>
> <property name="pattern">###0</property>
> </structure>
> <property name="textAlign">right</property>
> </style>
> <style name="Decimal_9990D9" id="2462">
> <structure name="numberFormat">
> <property name="category">Fixed</property>
> <property name="pattern">###0.0</property>
> </structure>
> <property name="textAlign">right</property>
> </style>
> <style name="Decimal_9990D99" id="2463">
> <structure name="numberFormat">
> <property name="category">Fixed</property>
> <property name="pattern">###0.00</property>
> </structure>
> <property name="textAlign">right</property>
> </style>
> <style name="Decimal_9990D999" id="2464">
> <structure name="numberFormat">
> <property name="category">Fixed</property>
> <property name="pattern">###0.000</property>
> </structure>
> <property name="textAlign">right</property>
> </style>
> <style name="Decimal_9990D9999" id="2465">
> <structure name="numberFormat">
> <property name="category">Fixed</property>
> <property name="pattern">###0.0000</property>
> </structure>
> <property name="textAlign">right</property>
> </style>
> <style name="Empty" id="2466">
> <property name="backgroundColor">#FFFFFF</property>
> <property name="borderBottomWidth">0pt</property>
> <property name="borderLeftWidth">0pt</property>
> <property name="borderRightWidth">0pt</property>
> <property name="borderTopWidth">0pt</property>
> </style>
> <style name="NoBorder" id="3060">
> <property name="borderBottomWidth">0pt</property>
> <property name="borderLeftWidth">0pt</property>
> <property name="borderRightWidth">0pt</property>
> <property name="borderTopWidth">0pt</property>
> </style>
> <style name="DateTime_h12_mm" id="2467">
> <structure name="dateTimeFormat">
> <property name="category">Custom</property>
> <property name="pattern">hh:mm</property>
> </structure>
> </style>
> <style name="DateTime_h24_mm" id="3059">
> <structure name="dateTimeFormat">
> <property name="category">Custom</property>
> <property name="pattern">HH:mm</property>
> </structure>
> </style>
> <style name="NoPadding" id="2932">
> <property name="paddingTop">0pt</property>
> <property name="paddingLeft">0pt</property>
> <property name="paddingBottom">0pt</property>
> <property name="paddingRight">0pt</property>
> </style>
> </styles>
> <page-setup>
> <simple-master-page name="MasterPage" id="2"/>
> </page-setup>
> <body>
> <table id="3300">
> <property name="dataSet">Data Set</property>
> <list-property name="boundDataColumns">
> <structure>
> <property name="name">ORDERNUMBER</property>
> <text-property name="displayName">ORDERNUMBER</text-property>
> <expression name="expression"
> type="javascript">dataSetRow["ORDERNUMBER"]</expression >
> <property name="dataType">integer</property>
> </structure>
> <structure>
> <property name="name">ORDERDATE</property>
> <text-property name="displayName">ORDERDATE</text-property>
> <expression name="expression"
> type="javascript">dataSetRow["ORDERDATE"]</expression>
> <property name="dataType">date</property>
> </structure>
> <structure>
> <property name="name">REQUIREDDATE</property>
> <text-property name="displayName">REQUIREDDATE</text-property>
> <expression name="expression"
> type="javascript">dataSetRow["REQUIREDDATE"]</expression >
> <property name="dataType">date</property>
> </structure>
> <structure>
> <property name="name">SHIPPEDDATE</property>
> <text-property name="displayName">SHIPPEDDATE</text-property>
> <expression name="expression"
> type="javascript">dataSetRow["SHIPPEDDATE"]</expression >
> <property name="dataType">date</property>
> </structure>
> <structure>
> <property name="name">STATUS</property>
> <text-property name="displayName">STATUS</text-property>
> <expression name="expression"
> type="javascript">dataSetRow["STATUS"]</expression>
> <property name="dataType">string</property>
> </structure>
> <structure>
> <property name="name">COMMENTS</property>
> <text-property name="displayName">COMMENTS</text-property>
> <expression name="expression"
> type="javascript">dataSetRow["COMMENTS"]</expression>
> <property name="dataType">string</property>
> </structure>
> <structure>
> <property name="name">CUSTOMERNUMBER</property>
> <text-property name="displayName">CUSTOMERNUMBER</text-property>
> <expression name="expression"
> type="javascript">dataSetRow["CUSTOMERNUMBER"]</expression >
> <property name="dataType">integer</property>
> </structure>
> </list-property>
> <property name="pageBreakInterval">1</property>
> <column id="3339"/>
> <column id="3340"/>
> <column id="3341"/>
> <header>
> <row id="3301">
> <cell id="3302">
> <label id="3399">
> <text-property name="text">ORDERNUMBER (Header):</text-property>
> </label>
> </cell>
> <cell id="3304">
> <data id="3318">
> <property name="whiteSpace">nowrap</property>
> <property name="resultSetColumn">ORDERNUMBER</property>
> </data>
> </cell>
> <cell id="3306">
> <grid id="3400">
> <column id="3401"/>
> <column id="3402"/>
> <column id="3403"/>
> <row id="3404">
> <cell id="3405">
> <auto-text id="3406">
> <property name="type">page-number</property>
> </auto-text>
> </cell>
> <cell id="3407">
> <text id="3408">
> <property name="contentType">plain</property>
> <text-property name="content"><![CDATA[/]]></text-property>
> </text>
> </cell>
> <cell id="3409">
> <auto-text id="3410">
> <property name="type">total-page</property>
> </auto-text>
> </cell>
> </row>
> </grid>
> </cell>
> </row>
> </header>
> <group id="3411">
> <property name="groupName">NewTableGroup1</property>
> <property name="interval">none</property>
> <property name="sortDirection">asc</property>
> <expression name="keyExpr"
> type="javascript">row["ORDERNUMBER"]</expression>
> <structure name="toc">
> <expression name="expressionValue"
> type="javascript">row["ORDERNUMBER"]</expression>
> </structure>
> <property name="repeatHeader">true</property>
> <property name="hideDetail">false</property>
> <property name="pageBreakAfter">auto</property>
> <property name="pageBreakBefore">auto</property>
> <property name="pageBreakInside">auto</property>
> <header>
> <row id="3412">
> <cell id="3413">
> <label id="3398">
> <text-property name="text">ORDERNUMBER (Groupheader):</text-property>
> </label>
> </cell>
> <cell id="3414">
> <data id="3421">
> <property name="whiteSpace">nowrap</property>
> <property name="resultSetColumn">ORDERNUMBER</property>
> </data>
> </cell>
> <cell id="3415">
> <grid id="3422">
> <column id="3423"/>
> <column id="3424"/>
> <column id="3425"/>
> <row id="3426">
> <cell id="3427">
> <auto-text id="3428">
> <property name="type">page-number</property>
> </auto-text>
> </cell>
> <cell id="3429">
> <text id="3430">
> <property name="contentType">plain</property>
> <text-property name="content"><![CDATA[/]]></text-property>
> </text>
> </cell>
> <cell id="3431">
> <auto-text id="3432">
> <property name="type">total-page</property>
> </auto-text>
> </cell>
> </row>
> </grid>
> </cell>
> </row>
> </header>
> <footer>
> <row id="3416">
> <cell id="3417"/>
> <cell id="3418"/>
> <cell id="3419"/>
> </row>
> </footer>
> </group>
> <detail>
> <row id="3386">
> <property name="pageBreakInside">auto</property>
> <cell id="3387">
> <label id="3396">
> <text-property name="text">TEXT</text-property>
> </label>
> </cell>
> <cell id="3388">
> <text id="3390">
> <property name="contentType">auto</property>
> <text-property name="content"><![CDATA[some text
> some text
> some text
> some text
> some text
> some text
> some text
> some text
> some text
> some text
> some text
> some text
> some text
> some text
> some text
> some text
> some text
> some text
> some text
> some text
> some text
> some text
> some text
> some text]]></text-property>
> </text>
> </cell>
> <cell id="3389"/>
> </row>
> <row id="3316">
> <cell id="3317">
> <label id="3305">
> <text-property name="text">ORDERDATE</text-property>
> </label>
> </cell>
> <cell id="3319">
> <data id="3320">
> <property name="whiteSpace">nowrap</property>
> <property name="resultSetColumn">ORDERDATE</property>
> </data>
> </cell>
> <cell id="3321"/>
> </row>
> <row id="3346">
> <cell id="3347">
> <label id="3307">
> <text-property name="text">REQUIREDDATE</text-property>
> </label>
> </cell>
> <cell id="3348">
> <data id="3322">
> <property name="whiteSpace">nowrap</property>
> <property name="resultSetColumn">REQUIREDDATE</property>
> </data>
> </cell>
> <cell id="3349"/>
> </row>
> <row id="3378">
> <cell id="3379">
> <label id="3309">
> <text-property name="text">SHIPPEDDATE</text-property>
> </label>
> </cell>
> <cell id="3380">
> <data id="3324">
> <property name="whiteSpace">nowrap</property>
> <property name="resultSetColumn">SHIPPEDDATE</property>
> </data>
> </cell>
> <cell id="3381"/>
> </row>
> <row id="3370">
> <cell id="3371">
> <label id="3311">
> <text-property name="text">STATUS</text-property>
> </label>
> </cell>
> <cell id="3372">
> <data id="3326">
> <property name="whiteSpace">nowrap</property>
> <property name="resultSetColumn">STATUS</property>
> </data>
> </cell>
> <cell id="3373"/>
> </row>
> <row id="3362">
> <cell id="3363">
> <label id="3313">
> <text-property name="text">COMMENTS</text-property>
> </label>
> </cell>
> <cell id="3364">
> <data id="3328">
> <property name="whiteSpace">nowrap</property>
> <property name="resultSetColumn">COMMENTS</property>
> </data>
> </cell>
> <cell id="3365"/>
> </row>
> <row id="3354">
> <cell id="3355">
> <label id="3315">
> <text-property name="text">CUSTOMERNUMBER</text-property>
> </label>
> </cell>
> <cell id="3356">
> <data id="3330">
> <property name="whiteSpace">nowrap</property>
> <property name="resultSetColumn">CUSTOMERNUMBER</property>
> </data>
> </cell>
> <cell id="3357"/>
> </row>
> <row id="3391">
> <property name="pageBreakInside">auto</property>
> <cell id="3392">
> <label id="3397">
> <text-property name="text">TEXT</text-property>
> </label>
> </cell>
> <cell id="3393">
> <text id="3395">
> <property name="contentType">auto</property>
> <text-property name="content"><![CDATA[some text
> some text
> some text
> some text
> some text
> some text
> some text
> some text
> some text
> some text
> some text
> some text
> some text
> some text
> some text
> some text
> some text
> some text
> some text
> some text
> some text
> some text
> some text
> some text]]></text-property>
> </text>
> </cell>
> <cell id="3394"/>
> </row>
> </detail>
> </table>
> </body>
> </report>
Re: onRender in table-header [message #640158 is a reply to message #639911] Fri, 19 November 2010 06:49 Go to previous message
No real name is currently offline No real name
Messages: 11
Registered: August 2010
Junior Member
Thanks Jason!

I hope this bug will be resolved in the next version.

Peter
Previous Topic:Cascading Parameters - default values
Next Topic:Using POJO to access JDBC via Scripted Data Source
Goto Forum:
  


Current Time: Wed Jul 23 16:13:45 EDT 2014

Powered by FUDForum. Page generated in 0.02857 seconds