<?xml version="1.0" encoding="UTF-8"?>
<report xmlns="http://www.eclipse.org/birt/2005/design" version="3.2.20" id="1">
<property name="createdBy">Eclipse BIRT Designer Version 2.5.1.v20090903 Build <2.5.1.v20090917-1447></property>
<property name="units">in</property>
<property name="iconFile">/templates/blank_report.gif</property>
<property name="layoutPreference">auto layout</property>
<property name="bidiLayoutOrientation">ltr</property>
<parameters>
<scalar-parameter name="From_date" id="35">
<text-property name="helpText">ex. 2001-01-13 13:59:00</text-property>
<text-property name="promptText">From date</text-property>
<property name="valueType">static</property>
<property name="isRequired">false</property>
<property name="dataType">string</property>
<property name="distinct">true</property>
<simple-property-list name="defaultValue">
<value type="constant">1970-01-01 00:00:00</value>
</simple-property-list>
<property name="paramType">simple</property>
<property name="controlType">text-box</property>
<structure name="format">
<property name="category">Unformatted</property>
</structure>
</scalar-parameter>
<scalar-parameter name="To_date" id="36">
<text-property name="helpText">ex. 2009-12-01 16:40:59</text-property>
<text-property name="promptText">To date</text-property>
<property name="valueType">static</property>
<property name="isRequired">false</property>
<property name="dataType">string</property>
<property name="distinct">true</property>
<simple-property-list name="defaultValue">
<value type="javascript">var date=new Date(); date.getFullYear()+"-"+(date.getMonth()+1)+"-"+date.getDate()+" "+date.getHours()+":"+date.getMinutes()+":"+date.getSeconds();</value>
</simple-property-list>
<property name="paramType">simple</property>
<property name="controlType">text-box</property>
<structure name="format">
<property name="category">Unformatted</property>
</structure>
</scalar-parameter>
</parameters>
<data-sources>
<oda-data-source extensionID="org.eclipse.birt.report.data.oda.jdbc" name="Data Source" id="7">
<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">JDBC_DRIVER</property>
<property name="odaURL">jdbc:uri</property>
<property name="odaUser">user</property>
<encrypted-property name="odaPassword" encryptionID="base64">cGFzc3dvcmQ=</encrypted-property>
</oda-data-source>
</data-sources>
<data-sets>
<oda-data-set extensionID="org.eclipse.birt.report.data.oda.jdbc.JdbcSelectDataSet" name="Data Set" id="8">
<list-property name="columnHints">
<structure>
<property name="columnName">change</property>
<text-property name="displayName">change</text-property>
</structure>
<structure>
<property name="columnName">date</property>
<text-property name="displayName">date</text-property>
</structure>
<structure>
<property name="columnName">desc</property>
<text-property name="displayName">desc</text-property>
</structure>
</list-property>
<list-property name="parameters">
<structure>
<property name="name">from_date</property>
<property name="paramName">From_date</property>
<property name="dataType">string</property>
<property name="position">1</property>
<expression name="defaultValue">var date=new Date(); date.getFullYear()+"-"+(date.getMonth()+1)+"-"+date.getDate()+" "+date.getHours()+":"+date.getMinutes()+":"+date.getSeconds();</expression>
<property name="isInput">true</property>
<property name="isOutput">false</property>
</structure>
<structure>
<property name="name">to_date</property>
<property name="dataType">string</property>
<property name="position">2</property>
<expression name="defaultValue">var date=new Date(); date.getFullYear()+"-"+(date.getMonth()+1)+"-"+date.getDate()+" "+date.getHours()+":"+date.getMinutes()+":"+date.getSeconds();</expression>
<property name="isInput">true</property>
<property name="isOutput">false</property>
</structure>
</list-property>
<structure name="cachedMetaData">
<list-property name="resultSet">
<structure>
<property name="position">1</property>
<property name="name">change</property>
<property name="dataType">integer</property>
</structure>
<structure>
<property name="position">2</property>
<property name="name">date</property>
<property name="dataType">date-time</property>
</structure>
<structure>
<property name="position">3</property>
<property name="name">desc</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">change</property>
<property name="nativeName">change</property>
<property name="dataType">integer</property>
<property name="nativeDataType">4</property>
</structure>
<structure>
<property name="position">2</property>
<property name="name">date</property>
<property name="nativeName">date</property>
<property name="dataType">date-time</property>
<property name="nativeDataType">93</property>
</structure>
<structure>
<property name="position">3</property>
<property name="name">desc</property>
<property name="nativeName">desc</property>
<property name="dataType">string</property>
<property name="nativeDataType">12</property>
</structure>
</list-property>
<xml-property name="queryText"><![CDATA[select c.change, c.date, c.desc
from perforce.change c
where c.date >= ? and c.date <= ?
order by c.change desc;]]></xml-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" 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-cell" 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_header_row" id="31">
<property name="backgroundColor">#529EB5</property>
<property name="canShrink">true</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>
<text id="33">
<property name="dataSet">Data Set</property>
<list-property name="boundDataColumns">
<structure>
<property name="name">change</property>
<expression name="expression">dataSetRow["change"]</expression>
<property name="dataType">integer</property>
</structure>
<structure>
<property name="name">date</property>
<expression name="expression">dataSetRow["date"]</expression>
<property name="dataType">date-time</property>
</structure>
<structure>
<property name="name">desc</property>
<expression name="expression">dataSetRow["desc"]</expression>
<property name="dataType">string</property>
</structure>
</list-property>
<property name="contentType">html</property>
<text-property name="content"><![CDATA[<CENTER><B><span style="font-size: larger">
Changes By Month
</B></span><BR>
<BR><BR>
Report generated on <VALUE-OF>new Date( )</VALUE-OF>
</CENTER><BR><BR>]]></text-property>
</text>
<table id="9">
<property name="width">100%</property>
<property name="dataSet">Data Set</property>
<list-property name="boundDataColumns">
<structure>
<property name="name">change</property>
<expression name="expression">dataSetRow["change"]</expression>
<property name="dataType">integer</property>
</structure>
<structure>
<property name="name">date</property>
<text-property name="displayName">date</text-property>
<expression name="expression">dataSetRow["date"]</expression>
<property name="dataType">date-time</property>
</structure>
<structure>
<property name="name">desc</property>
<expression name="expression">dataSetRow["desc"]</expression>
<property name="dataType">string</property>
</structure>
<structure>
<property name="name">month</property>
<text-property name="displayName">month</text-property>
<expression name="expression" type="javascript">BirtDateTime.month(dataSetRow["date"],2) + ", " + BirtDateTime.year(dataSetRow["date"])</expression>
<property name="dataType">string</property>
</structure>
</list-property>
<column id="50">
<property name="width">0.9166666666666666in</property>
</column>
<column id="22">
<property name="width">0.8888888888888888in</property>
</column>
<column id="23">
<property name="width">1.3055555555555556in</property>
</column>
<column id="24">
<property name="width">4.819444444444445in</property>
</column>
<header>
<row id="10">
<cell id="47">
<label id="51">
<property name="backgroundColor">#529EB5</property>
<property name="fontWeight">bold</property>
<property name="paddingLeft">5pt</property>
<property name="textAlign">left</property>
<text-property name="text">Month</text-property>
</label>
</cell>
<cell id="11">
<label id="25">
<property name="style">table_header_row</property>
<property name="fontWeight">bold</property>
<property name="paddingLeft">5pt</property>
<property name="textAlign">left</property>
<text-property name="text">Change</text-property>
</label>
</cell>
<cell id="12">
<label id="27">
<property name="style">table_header_row</property>
<property name="fontWeight">bold</property>
<property name="paddingLeft">5pt</property>
<property name="textAlign">left</property>
<text-property name="text">Date</text-property>
</label>
</cell>
<cell id="13">
<label id="29">
<property name="style">table_header_row</property>
<property name="fontWeight">bold</property>
<property name="paddingLeft">5pt</property>
<property name="textAlign">left</property>
<text-property name="text">Description</text-property>
</label>
</cell>
</row>
</header>
<group id="53">
<property name="groupName">month_group</property>
<property name="interval">none</property>
<property name="sortDirection">desc</property>
<expression name="keyExpr" type="javascript">row["month"]</expression>
<structure name="toc">
<expression name="expressionValue" type="javascript">row["month"]</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>
<list-property name="sort">
<structure>
<expression name="key" type="javascript">row["date"]</expression>
<property name="direction">desc</property>
</structure>
</list-property>
<header>
<row id="54">
<cell id="55">
<data id="64">
<property name="paddingLeft">5pt</property>
<property name="resultSetColumn">month</property>
</data>
</cell>
<cell id="56"/>
<cell id="57"/>
<cell id="58"/>
</row>
</header>
<footer>
<row id="59">
<cell id="60"/>
<cell id="61"/>
<cell id="62"/>
<cell id="63"/>
</row>
</footer>
</group>
<detail>
<row id="14">
<cell id="48"/>
<cell id="15">
<data id="26">
<property name="paddingLeft">10pt</property>
<property name="resultSetColumn">change</property>
</data>
</cell>
<cell id="16">
<data id="32">
<property name="paddingLeft">3pt</property>
<property name="resultSetColumn">date</property>
</data>
</cell>
<cell id="17">
<data id="30">
<property name="paddingLeft">2pt</property>
<property name="resultSetColumn">desc</property>
</data>
</cell>
</row>
</detail>
<footer>
<row id="18">
<cell id="49"/>
<cell id="19"/>
<cell id="20"/>
<cell id="21"/>
</row>
</footer>
</table>
</body>
</report>
# |
Change |
User |
Description |
Committed |
|
#2
|
7583 |
jkovisto |
Added year to "month" group for better sorting
across years. Other reformatting to improve
appearance. |
|
|
#1
|
7575 |
jkovisto |
Initial revision for BIRT report examples |
|
|