Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?xml version="1.0" encoding="UTF-8"?>
- <report xmlns="http://www.eclipse.org/birt/2005/design" version="3.2.23" id="1">
- <property name="createdBy">Eclipse BIRT Designer Version 4.2.1.v201209101448 Build <4.2.1.v20120912-1721></property>
- <property name="units">in</property>
- <property name="iconFile">/templates/blank_report.gif</property>
- <property name="bidiLayoutOrientation">ltr</property>
- <property name="imageDPI">96</property>
- <data-sources>
- <script-data-source name="Scripted Data Source" id="7"/>
- </data-sources>
- <data-sets>
- <script-data-set name="Outer Data Set" id="8">
- <list-property name="resultSetHints">
- <structure>
- <property name="position">1</property>
- <property name="name">key</property>
- <property name="dataType">string</property>
- </structure>
- </list-property>
- <list-property name="columnHints">
- <structure>
- <property name="columnName">key</property>
- </structure>
- </list-property>
- <structure name="cachedMetaData">
- <list-property name="resultSet">
- <structure>
- <property name="position">1</property>
- <property name="name">key</property>
- <property name="dataType">string</property>
- </structure>
- </list-property>
- </structure>
- <property name="dataSource">Scripted Data Source</property>
- <method name="open"><![CDATA[importPackage(Packages.java.util);
- map = new HashMap();
- for (index = 0; index < 10; index++){
- var list = new ArrayList();
- for (index2 = 0; index2 < 5; index2++) {
- list.add("value[" + index + "][" + index2 + "]");
- }
- map.put("key" + index, list);
- }
- keys = new ArrayList(map.keySet());
- Collections.sort(keys);
- keys = keys.iterator();]]></method>
- <method name="fetch"><![CDATA[if (!keys.hasNext() ) {
- return false;
- }
- var key = keys.next();
- var value = map.get(key);
- row["key"] = key;
- vars["values"] = value;
- return true;]]></method>
- </script-data-set>
- <script-data-set name="Inner Data Set" id="9">
- <list-property name="resultSetHints">
- <structure>
- <property name="position">1</property>
- <property name="name">value</property>
- <property name="dataType">string</property>
- </structure>
- </list-property>
- <list-property name="columnHints">
- <structure>
- <property name="columnName">value</property>
- </structure>
- </list-property>
- <structure name="cachedMetaData">
- <list-property name="resultSet">
- <structure>
- <property name="position">1</property>
- <property name="name">value</property>
- <property name="dataType">string</property>
- </structure>
- </list-property>
- </structure>
- <property name="dataSource">Scripted Data Source</property>
- <method name="open"><![CDATA[values = vars["values"].iterator();
- ]]></method>
- <method name="fetch"><![CDATA[if (!values.hasNext() ) {
- return false;
- }
- row["value"] = values.next();
- 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>
- <list id="10">
- <property name="dataSet">Outer Data Set</property>
- <list-property name="boundDataColumns">
- <structure>
- <property name="name">key</property>
- <text-property name="displayName">key</text-property>
- <expression name="expression" type="javascript">dataSetRow["key"]</expression>
- <property name="dataType">string</property>
- </structure>
- </list-property>
- <detail>
- <grid id="11">
- <column id="12"/>
- <column id="13"/>
- <row id="14">
- <cell id="15">
- <data id="24">
- <property name="resultSetColumn">key</property>
- </data>
- </cell>
- <cell id="16">
- <list id="18">
- <property name="dataSet">Inner Data Set</property>
- <list-property name="boundDataColumns">
- <structure>
- <property name="name">value</property>
- <text-property name="displayName">value</text-property>
- <expression name="expression" type="javascript">dataSetRow["value"]</expression>
- <property name="dataType">string</property>
- </structure>
- </list-property>
- <detail>
- <grid id="19">
- <column id="20"/>
- <row id="21">
- <cell id="22">
- <data id="25">
- <property name="resultSetColumn">value</property>
- </data>
- </cell>
- </row>
- </grid>
- </detail>
- </list>
- </cell>
- </row>
- </grid>
- </detail>
- </list>
- </body>
- <property name="pageVariables">
- <variable-element name="values">
- <property name="type">report</property>
- </variable-element>
- </property>
- </report>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement