| <?xml version="1.0" encoding="UTF-8"?> |
| <!-- |
| Licensed to the Apache Software Foundation (ASF) under one |
| or more contributor license agreements. See the NOTICE file |
| distributed with this work for additional information |
| regarding copyright ownership. The ASF licenses this file |
| to you under the Apache License, Version 2.0 (the |
| "License"); you may not use this file except in compliance |
| with the License. You may obtain a copy of the License at |
| |
| http://www.apache.org/licenses/LICENSE-2.0 |
| |
| Unless required by applicable law or agreed to in writing, |
| software distributed under the License is distributed on an |
| "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY |
| KIND, either express or implied. See the License for the |
| specific language governing permissions and limitations |
| under the License. |
| --> |
| <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> |
| <property name="units">in</property> |
| <method name="initialize"><![CDATA[importPackage(Packages.org.apache.ofbiz.base.util) |
| |
| module = "example.rptdesign";]]></method> |
| <property name="iconFile">/templates/blank_report.gif</property> |
| <property name="bidiLayoutOrientation">ltr</property> |
| <data-sources> |
| <script-data-source name="OFBiz" id="8"/> |
| </data-sources> |
| <data-sets> |
| <script-data-set name="Example" id="9"> |
| <list-property name="resultSetHints"> |
| <structure> |
| <property name="position">0</property> |
| <property name="name">exampleId</property> |
| <property name="dataType">string</property> |
| </structure> |
| <structure> |
| <property name="position">1</property> |
| <property name="name">exampleTypeId</property> |
| <property name="dataType">string</property> |
| </structure> |
| <structure> |
| <property name="position">2</property> |
| <property name="name">exampleName</property> |
| <property name="dataType">string</property> |
| </structure> |
| </list-property> |
| <list-property name="columnHints"> |
| <structure> |
| <property name="columnName">exampleId</property> |
| <text-property name="displayName">exampleId</text-property> |
| </structure> |
| <structure> |
| <property name="columnName">exampleTypeId</property> |
| <text-property name="displayName">exampleTypeId</text-property> |
| </structure> |
| <structure> |
| <property name="columnName">exampleName</property> |
| <text-property name="displayName">exampleName</text-property> |
| </structure> |
| </list-property> |
| <structure name="cachedMetaData"> |
| <list-property name="resultSet"> |
| <structure> |
| <property name="position">1</property> |
| <property name="name">exampleId</property> |
| <property name="dataType">string</property> |
| </structure> |
| <structure> |
| <property name="position">2</property> |
| <property name="name">exampleTypeId</property> |
| <property name="dataType">string</property> |
| </structure> |
| <structure> |
| <property name="position">3</property> |
| <property name="name">exampleName</property> |
| <property name="dataType">string</property> |
| </structure> |
| </list-property> |
| </structure> |
| <property name="dataSource">OFBiz</property> |
| <method name="open"><![CDATA[examples = null; |
| try { |
| examples = delegator.findList("Example", null, null, null, null, false); |
| } catch (e) { |
| Debug.logError(e, module); |
| } |
| totalRow = 0; |
| countOfRow = 0; |
| if (examples) { |
| totalRow = examples.size(); |
| }]]></method> |
| <method name="fetch"><![CDATA[if (countOfRow == totalRow - 1) return false; |
| |
| example = examples.get(countOfRow); |
| exampleId = example.getString("exampleId"); |
| exampleTypeId = example.getString("exampleTypeId"); |
| exampleName = example.getString("exampleName"); |
| |
| row["exampleId"] = exampleId; |
| row["exampleTypeId"] = exampleTypeId; |
| row["exampleName"] = exampleName; |
| |
| countOfRow ++; |
| return true;]]></method> |
| </script-data-set> |
| </data-sets> |
| <styles> |
| <style name="report" id="4"> |
| <property name="fontFamily">sans-serif</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> |
| </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> |
| <table id="10"> |
| <property name="dataSet">Example</property> |
| <list-property name="boundDataColumns"> |
| <structure> |
| <property name="name">exampleId</property> |
| <text-property name="displayName">exampleId</text-property> |
| <expression name="expression" type="javascript">dataSetRow["exampleId"]</expression> |
| <property name="dataType">string</property> |
| </structure> |
| <structure> |
| <property name="name">exampleTypeId</property> |
| <text-property name="displayName">exampleTypeId</text-property> |
| <expression name="expression" type="javascript">dataSetRow["exampleTypeId"]</expression> |
| <property name="dataType">string</property> |
| </structure> |
| <structure> |
| <property name="name">exampleName</property> |
| <text-property name="displayName">exampleName</text-property> |
| <expression name="expression">dataSetRow["exampleName"]</expression> |
| <property name="dataType">string</property> |
| </structure> |
| </list-property> |
| <column id="29"/> |
| <column id="30"/> |
| <column id="31"/> |
| <header> |
| <row id="11"> |
| <property name="backgroundColor">#BFBFBF</property> |
| <property name="fontWeight">bold</property> |
| <property name="textAlign">center</property> |
| <cell id="12"> |
| <label id="13"> |
| <text-property name="text">exampleId</text-property> |
| </label> |
| </cell> |
| <cell id="14"> |
| <label id="15"> |
| <text-property name="text">exampleTypeId</text-property> |
| </label> |
| </cell> |
| <cell id="16"> |
| <label id="17"> |
| <text-property name="text">exampleName</text-property> |
| </label> |
| </cell> |
| </row> |
| </header> |
| <detail> |
| <row id="18"> |
| <cell id="19"> |
| <data id="20"> |
| <property name="resultSetColumn">exampleId</property> |
| </data> |
| </cell> |
| <cell id="21"> |
| <data id="22"> |
| <property name="resultSetColumn">exampleTypeId</property> |
| </data> |
| </cell> |
| <cell id="23"> |
| <data id="24"> |
| <property name="resultSetColumn">exampleName</property> |
| </data> |
| </cell> |
| </row> |
| </detail> |
| <footer> |
| <row id="25"> |
| <cell id="26"/> |
| <cell id="27"/> |
| <cell id="28"/> |
| </row> |
| </footer> |
| </table> |
| </body> |
| </report> |