Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » BIRT » problem when define dinamic XML data source
problem when define dinamic XML data source [message #365045] Mon, 08 September 2008 09:56 Go to next message
mortierm is currently offline mortiermFriend
Messages: 7
Registered: July 2009
Junior Member
Hi,

I try the Birt 2.3.1RC1 (I need this version) and I use XML data source.

When I defnie my datasource by the standard way : in the "XML DataSource
Connection Properties" (I give the xml file in the first field)

my report work perfectly.

but when I try to use the "Properties Binding" (I filled the first field)
I have an error "Some connection properties are missing." (even if I dont
use report parameters (I wan't to use parameters for switch XML), and I
only give the URL of the XML file)

in other version of birt this behaviour is not present

than'ks for your help

mortierm

heres is a sample report whitch show this behaviour :

<?xml version="1.0" encoding="UTF-8"?>
<report xmlns="http://www.eclipse.org/birt/2005/design" version="3.2.17"
id="1">
<property name="createdBy">Eclipse BIRT Designer Version
2.3.1.v20080813-0630 Build &lt;2.3.1.v20080813-0630></property>
<property name="units">in</property>
<list-property name="userProperties">
<structure>
<property name="name">Data Cube.commandes.x</property>
<property name="type">integer</property>
<property name="isVisible">false</property>
</structure>
<structure>
<property name="name">Data Cube.commandes.y</property>
<property name="type">integer</property>
<property name="isVisible">false</property>
</structure>
<structure>
<property name="name">Data
Cube.produits.NewTabularHierarchy.x</property>
<property name="type">integer</property>
<property name="isVisible">false</property>
</structure>
<structure>
<property name="name">Data
Cube.produits.NewTabularHierarchy.y</property>
<property name="type">integer</property>
<property name="isVisible">false</property>
</structure>
<structure>
<property name="name">Data Cube.commandes.width</property>
<property name="type">integer</property>
<property name="isVisible">false</property>
</structure>
<structure>
<property name="name">Data Cube.commandes.height</property>
<property name="type">integer</property>
<property name="isVisible">false</property>
</structure>
<structure>
<property name="name">Data
Cube.clients.NewTabularHierarchy1.x</property>
<property name="type">integer</property>
<property name="isVisible">false</property>
</structure>
<structure>
<property name="name">Data
Cube.clients.NewTabularHierarchy1.y</property>
<property name="type">integer</property>
<property name="isVisible">false</property>
</structure>
<structure>
<property name="name">Data
Cube.clients.NewTabularHierarchy1.width</property>
<property name="type">integer</property>
<property name="isVisible">false</property>
</structure>
<structure>
<property name="name">Data
Cube.clients.NewTabularHierarchy1.height</property>
<property name="type">integer</property>
<property name="isVisible">false</property>
</structure>
<structure>
<property name="name">Data
Cube.produits.NewTabularHierarchy.width</property>
<property name="type">integer</property>
<property name="isVisible">false</property>
</structure>
<structure>
<property name="name">Data
Cube.produits.NewTabularHierarchy.height</property>
<property name="type">integer</property>
<property name="isVisible">false</property>
</structure>
<structure>
<property name="name">commandes.commandes.x</property>
<property name="type">integer</property>
<property name="isVisible">false</property>
</structure>
<structure>
<property name="name">commandes.commandes.y</property>
<property name="type">integer</property>
<property name="isVisible">false</property>
</structure>
<structure>
<property
name="name">commandes.produits.NewTabularHierarchy.x</property >
<property name="type">integer</property>
<property name="isVisible">false</property>
</structure>
<structure>
<property
name="name">commandes.produits.NewTabularHierarchy.y</property >
<property name="type">integer</property>
<property name="isVisible">false</property>
</structure>
<structure>
<property name="name">commandes.commandes.width</property>
<property name="type">integer</property>
<property name="isVisible">false</property>
</structure>
<structure>
<property name="name">commandes.commandes.height</property>
<property name="type">integer</property>
<property name="isVisible">false</property>
</structure>
<structure>
<property
name="name">commandes.clients.NewTabularHierarchy1.x</property >
<property name="type">integer</property>
<property name="isVisible">false</property>
</structure>
<structure>
<property
name="name">commandes.clients.NewTabularHierarchy1.y</property >
<property name="type">integer</property>
<property name="isVisible">false</property>
</structure>
<structure>
<property
name="name">commandes.clients.NewTabularHierarchy1.width</property >
<property name="type">integer</property>
<property name="isVisible">false</property>
</structure>
<structure>
<property
name="name">commandes.clients.NewTabularHierarchy1.height</property >
<property name="type">integer</property>
<property name="isVisible">false</property>
</structure>
<structure>
<property
name="name">commandes.produits.NewTabularHierarchy.width</property >
<property name="type">integer</property>
<property name="isVisible">false</property>
</structure>
<structure>
<property
name="name">commandes.produits.NewTabularHierarchy.height</property >
<property name="type">integer</property>
<property name="isVisible">false</property>
</structure>
</list-property>
<property name="Data Cube.commandes.x">342</property>
<property name="Data Cube.commandes.y">26</property>
<property name="Data
Cube.produits.NewTabularHierarchy.x">175</property>
<property name="Data
Cube.produits.NewTabularHierarchy.y">123</property>
<property name="Data Cube.commandes.width">150</property>
<property name="Data Cube.commandes.height">200</property>
<property name="Data Cube.clients.NewTabularHierarchy1.x">26</property>
<property name="Data Cube.clients.NewTabularHierarchy1.y">16</property>
<property name="Data
Cube.clients.NewTabularHierarchy1.width">150</property>
<property name="Data
Cube.clients.NewTabularHierarchy1.height">200</property>
<property name="Data
Cube.produits.NewTabularHierarchy.width">150</property>
<property name="Data
Cube.produits.NewTabularHierarchy.height">200</property>
<property name="commandes.commandes.x">271</property>
<property name="commandes.commandes.y">48</property>
<property name="commandes.produits.NewTabularHierarchy.x">15</property >
<property name="commandes.produits.NewTabularHierarchy.y">24</property >
<property name="commandes.commandes.width">150</property>
<property name="commandes.commandes.height">200</property>
<property name="commandes.clients.NewTabularHierarchy1.x">27</property >
<property
name="commandes.clients.NewTabularHierarchy1.y">102</property >
<property
name="commandes.clients.NewTabularHierarchy1.width">150</property >
<property
name="commandes.clients.NewTabularHierarchy1.height">200</property >
<property
name="commandes.produits.NewTabularHierarchy.width">150</property >
<property
name="commandes.produits.NewTabularHierarchy.height">200</property >
<list-property name="propertyBindings">
<structure>
<property name="name">FILELIST</property>
<property name="id">6</property>
<expression name="value">"C:\\workspace
ganymede\\test\\test.xml"</expression>
</structure>
</list-property>
<property name="iconFile">/templates/blank_report.gif</property>
<data-sources>
<oda-data-source
extensionID="org.eclipse.datatools.enablement.oda.xml"
name="XMLDataSource" id="6"/>
</data-sources>
<data-sets>
<oda-data-set
extensionID="org.eclipse.datatools.enablement.oda.xml.dataSet "
name="clients" id="7">
<list-property name="filter">
<structure>
<property name="operator">ge</property>
<expression name="expr">row["id"]</expression>
<simple-property-list name="value1">
<value>0</value>
</simple-property-list>
</structure>
</list-property>
<structure name="cachedMetaData">
<list-property name="resultSet">
<structure>
<property name="position">1</property>
<property name="name">id</property>
<property name="dataType">integer</property>
</structure>
<structure>
<property name="position">2</property>
<property name="name">client</property>
<property name="dataType">string</property>
</structure>
</list-property>
</structure>
<property name="dataSource">XMLDataSource</property>
<list-property name="resultSet">
<structure>
<property name="position">1</property>
<property name="name">id</property>
<property name="nativeName">id</property>
<property name="dataType">integer</property>
<property name="nativeDataType">4</property>
</structure>
<structure>
<property name="position">2</property>
<property name="name">client</property>
<property name="nativeName">client</property>
<property name="dataType">string</property>
<property name="nativeDataType">12</property>
</structure>
</list-property>
<property
name="queryText"> table0#-TNAME-#table0#:#[/root/clients/client]#:#{id;INT;/@i d},{client;STRING;} </property>
<xml-property name="designerValues"><![CDATA[<?xml
version="1.0" encoding="UTF-8"?>
<model:DesignValues
xmlns:design="http://www.eclipse.org/datatools/connectivity/oda/design"
xmlns:model="http://www.eclipse.org/birt/report/model/adapter/odaModel">
<Version>1.0</Version>
<design:ResultSets derivedMetaData="true">
<design:resultSetDefinitions>
<design:resultSetColumns>
<design:resultColumnDefinitions>
<design:attributes>
<design:name>id</design:name>
<design:position>1</design:position>
<design:nativeDataTypeCode>4</design:nativeDataTypeCode>
<design:precision>-1</design:precision>
<design:scale>-1</design:scale>
<design:nullability>Unknown</design:nullability>
</design:attributes>
<design:usageHints>
<design:label>id</design:label>
<design:formattingHints/>
</design:usageHints>
</design:resultColumnDefinitions>
<design:resultColumnDefinitions>
<design:attributes>
<design:name>client</design:name>
<design:position>2</design:position>
<design:nativeDataTypeCode>12</design:nativeDataTypeCode>
<design:precision>-1</design:precision>
<design:scale>-1</design:scale>
<design:nullability>Unknown</design:nullability>
</design:attributes>
<design:usageHints>
<design:label>client</design:label>
<design:formattingHints/>
</design:usageHints>
</design:resultColumnDefinitions>
</design:resultSetColumns>
</design:resultSetDefinitions>
</design:ResultSets>
</model:DesignValues>]]></xml-property>
<list-property name="privateDriverProperties">
<ex-property>
<name>MAX_ROW</name>
<value>-1</value>
</ex-property>
<ex-property>
<name>XML_FILE</name>
</ex-property>
</list-property>
</oda-data-set>
<oda-data-set
extensionID="org.eclipse.datatools.enablement.oda.xml.dataSet "
name="produits" id="8">
<list-property name="filter">
<structure>
<property name="operator">ge</property>
<expression name="expr">row["id"]</expression>
<simple-property-list name="value1">
<value>0</value>
</simple-property-list>
</structure>
</list-property>
<structure name="cachedMetaData">
<list-property name="resultSet">
<structure>
<property name="position">1</property>
<property name="name">id</property>
<property name="dataType">integer</property>
</structure>
<structure>
<property name="position">2</property>
<property name="name">produit</property>
<property name="dataType">string</property>
</structure>
</list-property>
</structure>
<property name="dataSource">XMLDataSource</property>
<list-property name="resultSet">
<structure>
<property name="position">1</property>
<property name="name">id</property>
<property name="nativeName">id</property>
<property name="dataType">integer</property>
<property name="nativeDataType">4</property>
</structure>
<structure>
<property name="position">2</property>
<property name="name">produit</property>
<property name="nativeName">produit</property>
<property name="dataType">string</property>
<property name="nativeDataType">12</property>
</structure>
</list-property>
<property
name="queryText"> table0#-TNAME-#table0#:#[/root/produits/produit]#:#{id;INT;/ @id},{produit;STRING;} </property>
<xml-property name="designerValues"><![CDATA[<?xml
version="1.0" encoding="UTF-8"?>
<model:DesignValues
xmlns:design="http://www.eclipse.org/datatools/connectivity/oda/design"
xmlns:model="http://www.eclipse.org/birt/report/model/adapter/odaModel">
<Version>1.0</Version>
<design:ResultSets derivedMetaData="true">
<design:resultSetDefinitions>
<design:resultSetColumns>
<design:resultColumnDefinitions>
<design:attributes>
<design:name>id</design:name>
<design:position>1</design:position>
<design:nativeDataTypeCode>4</design:nativeDataTypeCode>
<design:precision>-1</design:precision>
<design:scale>-1</design:scale>
<design:nullability>Unknown</design:nullability>
</design:attributes>
<design:usageHints>
<design:label>id</design:label>
<design:formattingHints/>
</design:usageHints>
</design:resultColumnDefinitions>
<design:resultColumnDefinitions>
<design:attributes>
<design:name>produit</design:name>
<design:position>2</design:position>
<design:nativeDataTypeCode>12</design:nativeDataTypeCode>
<design:precision>-1</design:precision>
<design:scale>-1</design:scale>
<design:nullability>Unknown</design:nullability>
</design:attributes>
<design:usageHints>
<design:label>produit</design:label>
<design:formattingHints/>
</design:usageHints>
</design:resultColumnDefinitions>
</design:resultSetColumns>
</design:resultSetDefinitions>
</design:ResultSets>
</model:DesignValues>]]></xml-property>
<list-property name="privateDriverProperties">
<ex-property>
<name>MAX_ROW</name>
<value>-1</value>
</ex-property>
<ex-property>
<name>XML_FILE</name>
</ex-property>
</list-property>
</oda-data-set>
<oda-data-set
extensionID="org.eclipse.datatools.enablement.oda.xml.dataSet "
name="commandes" id="9">
<structure name="cachedMetaData">
<list-property name="resultSet">
<structure>
<property name="position">1</property>
<property name="name">idClient</property>
<property name="dataType">integer</property>
</structure>
<structure>
<property name="position">2</property>
<property name="name">idProduit</property>
<property name="dataType">integer</property>
</structure>
<structure>
<property name="position">3</property>
<property name="name">commande</property>
<property name="dataType">integer</property>
</structure>
</list-property>
</structure>
<property name="dataSource">XMLDataSource</property>
<list-property name="resultSet">
<structure>
<property name="position">1</property>
<property name="name">idClient</property>
<property name="nativeName">idClient</property>
<property name="dataType">integer</property>
<property name="nativeDataType">4</property>
</structure>
<structure>
<property name="position">2</property>
<property name="name">idProduit</property>
<property name="nativeName">idProduit</property>
<property name="dataType">integer</property>
<property name="nativeDataType">4</property>
</structure>
<structure>
<property name="position">3</property>
<property name="name">commande</property>
<property name="nativeName">commande</property>
<property name="dataType">integer</property>
<property name="nativeDataType">4</property>
</structure>
</list-property>
<property
name="queryText"> table0#-TNAME-#table0#:#[/root/commandes/commande]#:#{idClie nt;INT;/@idClient},{idProduit;INT;/@idProduit},{commande;INT ;} </property>
<xml-property name="designerValues"><![CDATA[<?xml
version="1.0" encoding="UTF-8"?>
<model:DesignValues
xmlns:design="http://www.eclipse.org/datatools/connectivity/oda/design"
xmlns:model="http://www.eclipse.org/birt/report/model/adapter/odaModel">
<Version>1.0</Version>
<design:ResultSets derivedMetaData="true">
<design:resultSetDefinitions>
<design:resultSetColumns>
<design:resultColumnDefinitions>
<design:attributes>
<design:name>idClient</design:name>
<design:position>1</design:position>
<design:nativeDataTypeCode>4</design:nativeDataTypeCode>
<design:precision>-1</design:precision>
<design:scale>-1</design:scale>
<design:nullability>Unknown</design:nullability>
</design:attributes>
<design:usageHints>
<design:label>idClient</design:label>
<design:formattingHints/>
</design:usageHints>
</design:resultColumnDefinitions>
<design:resultColumnDefinitions>
<design:attributes>
<design:name>idProduit</design:name>
<design:position>2</design:position>
<design:nativeDataTypeCode>4</design:nativeDataTypeCode>
<design:precision>-1</design:precision>
<design:scale>-1</design:scale>
<design:nullability>Unknown</design:nullability>
</design:attributes>
<design:usageHints>
<design:label>idProduit</design:label>
<design:formattingHints/>
</design:usageHints>
</design:resultColumnDefinitions>
<design:resultColumnDefinitions>
<design:attributes>
<design:name>commande</design:name>
<design:position>3</design:position>
<design:nativeDataTypeCode>4</design:nativeDataTypeCode>
<design:precision>-1</design:precision>
<design:scale>-1</design:scale>
<design:nullability>Unknown</design:nullability>
</design:attributes>
<design:usageHints>
<design:label>commande</design:label>
<design:formattingHints/>
</design:usageHints>
</design:resultColumnDefinitions>
</design:resultSetColumns>
</design:resultSetDefinitions>
</design:ResultSets>
</model:DesignValues>]]></xml-property>
<list-property name="privateDriverProperties">
<ex-property>
<name>MAX_ROW</name>
<value>-1</value>
</ex-property>
<ex-property>
<name>XML_FILE</name>
</ex-property>
</list-property>
</oda-data-set>
</data-sets>
<cubes>
<tabular-cube name="commandes" id="10">
<property name="dimensions">
<tabular-dimension name="produits" id="11">
<property
name="defaultHierarchy">NewTabularHierarchy</property>
<property name="hierarchies">
<tabular-hierarchy name="NewTabularHierarchy"
id="12">
<property name="levels">
<tabular-level name="id" id="13">
<property
name="dataType">integer</property>
<property
name="levelType">dynamic</property>
<property
name="columnName">id</property>
<expression
name="displayColumnName">dataSetRow["produit"]</expression >
</tabular-level>
</property>
<property name="dataSet">produits</property>
</tabular-hierarchy>
</property>
</tabular-dimension>
<tabular-dimension name="clients" id="15">
<property
name="defaultHierarchy">NewTabularHierarchy1</property>
<property name="hierarchies">
<tabular-hierarchy name="NewTabularHierarchy1"
id="16">
<property name="levels">
<tabular-level name="id" id="17">
<property
name="dataType">integer</property>
<property
name="levelType">dynamic</property>
<property
name="columnName">id</property>
<expression
name="displayColumnName">dataSetRow["client"]</expression >
</tabular-level>
</property>
<property name="dataSet">clients</property>
</tabular-hierarchy>
</property>
</tabular-dimension>
</property>
<property name="measureGroups">
<tabular-measure-group name="Summary Field" id="19">
<property name="measures">
<tabular-measure name="commande" id="20">
<expression
name="measureExpression">dataSetRow["commande"]</expression >
<property name="dataType">integer</property>
</tabular-measure>
</property>
</tabular-measure-group>
</property>
<property name="dataSet">commandes</property>
<list-property name="dimensionConditions">
<structure>
<list-property name="joinConditions">
<structure>
<property name="cubeKey">idProduit</property>
<property name="hierarchyKey">id</property>
</structure>
</list-property>
<property
name="hierarchy">NewTabularHierarchy</property>
</structure>
<structure>
<list-property name="joinConditions">
<structure>
<property name="cubeKey">idClient</property>
<property name="hierarchyKey">id</property>
</structure>
</list-property>
<property
name="hierarchy">NewTabularHierarchy1</property>
</structure>
</list-property>
</tabular-cube>
</cubes>
<styles>
<style name="crosstab-cell" id="4">
<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="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>
</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>
<extended-item extensionName="Crosstab" extensionVersion="2.3.0"
id="21">
<property name="measures">
<extended-item extensionName="MeasureView" id="33">
<property name="measure">commande</property>
<property name="detail">
<extended-item extensionName="AggregationCell"
id="34">
<property
name="aggregationOnRow">clients/id</property>
<property
name="aggregationOnColumn">produits/id</property>
<property name="content">
<data id="35">
<property
name="resultSetColumn">commande_clients/id_produits/id</property >
</data>
</property>
</extended-item>
</property>
<property name="header">
<extended-item extensionName="CrosstabCell"
id="36">
<property name="content">
<text id="47">
<property
name="contentType">html</property>
<text-property
name="content"><![CDATA[<VALUE-OF>"ao&amp;#251;t"</VALUE-OF >]]></text-property>
</text>
<label id="37">
<text-property
name="text">commande</text-property>
</label>
</property>
</extended-item>
</property>
</extended-item>
</property>
<property name="rows">
<extended-item extensionName="CrosstabView" id="23">
<property name="views">
<extended-item extensionName="DimensionView"
id="42">
<property name="dimension">clients</property>
<property name="levels">
<extended-item extensionName="LevelView"
name="NewLevel View1" id="43">
<property
name="level">clients/id</property>
<property name="member">
<extended-item
extensionName="CrosstabCell" id="44">
<property name="content">
<data name="id1" id="45">
<property
name="resultSetColumn">id_1</property>
</data>
</property>
</extended-item>
</property>
</extended-item>
</property>
</extended-item>
</property>
</extended-item>
</property>
<property name="columns">
<extended-item extensionName="CrosstabView" id="28">
<property name="views">
<extended-item extensionName="DimensionView"
id="38">
<property name="dimension">produits</property>
<property name="levels">
<extended-item extensionName="LevelView"
name="NewLevel View" id="39">
<property
name="level">produits/id</property>
<property name="member">
<extended-item
extensionName="CrosstabCell" id="40">
<property name="content">
<data name="id" id="41">
<property
name="resultSetColumn">id</property>
</data>
</property>
</extended-item>
</property>
</extended-item>
</property>
</extended-item>
</property>
</extended-item>
</property>
<property name="header">
<extended-item extensionName="CrosstabCell" id="22"/>
</property>
<property name="cube">commandes</property>
<list-property name="boundDataColumns">
<structure>
<property name="name">commande</property>
<expression
name="expression">measure["commande"]</expression>
<property name="dataType">integer</property>
<property name="aggregateFunction">sum</property>
</structure>
<structure>
<property name="name">id</property>
<expression
name="expression">dimension["produits"]["id"]["DisplayName "]</expression>
<property name="dataType">string</property>
</structure>
<structure>
<property name="name">commande_produits/id</property>
<expression
name="expression">measure["commande"]</expression>
<property name="dataType">integer</property>
<simple-property-list name="aggregateOn">
<value>produits/id</value>
</simple-property-list>
<property name="aggregateFunction">sum</property>
</structure>
<structure>
<property name="name">id_1</property>
<expression
name="expression">dimension["clients"]["id"]["DisplayName "]</expression>
<property name="dataType">string</property>
</structure>
<structure>
<property
name="name">commande_clients/id_produits/id</property>
<expression
name="expression">measure["commande"]</expression>
<property name="dataType">integer</property>
<simple-property-list name="aggregateOn">
<value>clients/id</value>
<value>produits/id</value>
</simple-property-list>
<property name="aggregateFunction">sum</property>
</structure>
</list-property>
</extended-item>
</body>
</report>


and here is the XML datasource :

<?xml version="1.0" encoding="UTF-8"?>
<root>
<produits>
<produit id="1">produit 1</produit>
<produit id="2">produit 2</produit>
<produit id="3">produit 3</produit>
<produit id="4">produit 4</produit>
<produit id="5">produit 5</produit>
<produit id="6">produit 6</produit>
<produit id="7">produit 7</produit>
<produit id="8">produit 8</produit>
<produit id="9">produit 9</produit>
<produit id="10">produit 10</produit>
</produits>
<categories>
<categorie id="1">categorie 1</categorie>
<categorie id="2">categorie 2</categorie>
<categorie id="3">categorie 3</categorie>
<categorie id="4">categorie 4</categorie>
<categorie id="5">categorie 5</categorie>
<categorie id="6">categorie 6</categorie>
<categorie id="7">categorie 7</categorie>
<categorie id="8">categorie 8</categorie>
<categorie id="9">categorie 9</categorie>
<categorie id="10">categorie 10</categorie>
</categories>
<ventes>
<client idClient="1" idCategorie="1">
<vente idProduit="7"><quatite>8</quatite><prix>6.96</prix></vente >
<vente idProduit="5"><quatite>8</quatite><prix>2.55</prix></vente >
<vente idProduit="6"><quatite>5</quatite><prix>1.21</prix></vente >
<vente idProduit="6"><quatite>5</quatite><prix>4</prix></vente >
<vente idProduit="9"><quatite>5</quatite><prix>9.03</prix></vente >
<vente idProduit="5"><quatite>8</quatite><prix>4.06</prix></vente >
<vente idProduit="9"><quatite>2</quatite><prix>8.29</prix></vente >
<vente idProduit="3"><quatite>8</quatite><prix>7.53</prix></vente >
<vente idProduit="3"><quatite>8</quatite><prix>3.41</prix></vente >
<vente idProduit="7"><quatite>6</quatite><prix>5.77</prix></vente >
<vente idProduit="10"><quatite>6</quatite><prix>5.77</prix></vente >
</client>
<client idClient="1" idCategorie="2">
<vente idProduit="6"><quatite>10</quatite><prix>7.16</prix></vente >
<vente idProduit="8"><quatite>10</quatite><prix>8.68</prix></vente >
<vente idProduit="9"><quatite>9</quatite><prix>9.66</prix></vente >
<vente idProduit="4"><quatite>4</quatite><prix>1.08</prix></vente >
<vente idProduit="2"><quatite>5</quatite><prix>3.84</prix></vente >
<vente idProduit="3"><quatite>4</quatite><prix>3.81</prix></vente >
<vente idProduit="1"><quatite>1</quatite><prix>1.76</prix></vente >
<vente idProduit="5"><quatite>8</quatite><prix>8.33</prix></vente >
<vente idProduit="8"><quatite>9</quatite><prix>9.25</prix></vente >
<vente idProduit="10"><quatite>3</quatite><prix>5.89</prix></vente >
<vente idProduit="8"><quatite>6</quatite><prix>9.95</prix></vente >
</client>
<client idClient="1" idCategorie="3">
<vente idProduit="5"><quatite>8</quatite><prix>2.91</prix></vente >
<vente idProduit="4"><quatite>7</quatite><prix>6.3</prix></vente >
<vente idProduit="7"><quatite>2</quatite><prix>6.93</prix></vente >
<vente idProduit="4"><quatite>7</quatite><prix>1.89</prix></vente >
<vente idProduit="4"><quatite>3</quatite><prix>1.54</prix></vente >
<vente idProduit="4"><quatite>9</quatite><prix>3.2</prix></vente >
<vente idProduit="5"><quatite>9</quatite><prix>3.73</prix></vente >
<vente idProduit="9"><quatite>2</quatite><prix>3.17</prix></vente >
<vente idProduit="6"><quatite>3</quatite><prix>6.56</prix></vente >
<vente idProduit="3"><quatite>10</quatite><prix>4.2</prix></vente >
<vente idProduit="9"><quatite>10</quatite><prix>7.62</prix></vente >
<vente idProduit="7"><quatite>4</quatite><prix>6.69</prix></vente >
<vente idProduit="9"><quatite>10</quatite><prix>8.77</prix></vente >
</client>
<client idClient="1" idCategorie="4">
<vente idProduit="7"><quatite>5</quatite><prix>8.75</prix></vente >
<vente idProduit="8"><quatite>10</quatite><prix>1.95</prix></vente >
<vente idProduit="4"><quatite>8</quatite><prix>1.83</prix></vente >
<vente idProduit="4"><quatite>3</quatite><prix>8.59</prix></vente >
<vente idProduit="8"><quatite>6</quatite><prix>3.67</prix></vente >
<vente idProduit="5"><quatite>4</quatite><prix>3.52</prix></vente >
<vente idProduit="2"><quatite>8</quatite><prix>4.58</prix></vente >
<vente idProduit="10"><quatite>7</quatite><prix>9.88</prix></vente >
<vente idProduit="8"><quatite>1</quatite><prix>2.13</prix></vente >
<vente idProduit="5"><quatite>1</quatite><prix>1.51</prix></vente >
<vente idProduit="2"><quatite>1</quatite><prix>2.09</prix></vente >
<vente idProduit="8"><quatite>7</quatite><prix>9.27</prix></vente >
<vente idProduit="8"><quatite>3</quatite><prix>6.91</prix></vente >
<vente idProduit="3"><quatite>7</quatite><prix>3.79</prix></vente >
<vente idProduit="10"><quatite>1</quatite><prix>6.41</prix></vente >
<vente idProduit="4"><quatite>6</quatite><prix>7.52</prix></vente >
</client>
</ventes>
</root>
Re: problem when define dinamic XML data source [message #365051 is a reply to message #365045] Mon, 08 September 2008 15:55 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: jasonweathersby.alltel.net

Mortierm,

Can you log a bug for this and post the report to the bug?

Jason

mortierm wrote:
> Hi,
>
> I try the Birt 2.3.1RC1 (I need this version) and I use XML data source.
>
> When I defnie my datasource by the standard way : in the "XML DataSource
> Connection Properties" (I give the xml file in the first field)
>
> my report work perfectly.
>
> but when I try to use the "Properties Binding" (I filled the first
> field) I have an error "Some connection properties are missing." (even
> if I dont use report parameters (I wan't to use parameters for switch
> XML), and I only give the URL of the XML file)
>
> in other version of birt this behaviour is not present
>
> than'ks for your help
>
> mortierm
>
> heres is a sample report whitch show this behaviour :
>
> <?xml version="1.0" encoding="UTF-8"?>
> <report xmlns="http://www.eclipse.org/birt/2005/design" version="3.2.17"
> id="1">
> <property name="createdBy">Eclipse BIRT Designer Version
> 2.3.1.v20080813-0630 Build &lt;2.3.1.v20080813-0630></property>
> <property name="units">in</property>
> <list-property name="userProperties">
> <structure>
> <property name="name">Data Cube.commandes.x</property>
> <property name="type">integer</property>
> <property name="isVisible">false</property>
> </structure>
> <structure>
> <property name="name">Data Cube.commandes.y</property>
> <property name="type">integer</property>
> <property name="isVisible">false</property>
> </structure>
> <structure>
> <property name="name">Data
> Cube.produits.NewTabularHierarchy.x</property>
> <property name="type">integer</property>
> <property name="isVisible">false</property>
> </structure>
> <structure>
> <property name="name">Data
> Cube.produits.NewTabularHierarchy.y</property>
> <property name="type">integer</property>
> <property name="isVisible">false</property>
> </structure>
> <structure>
> <property name="name">Data Cube.commandes.width</property>
> <property name="type">integer</property>
> <property name="isVisible">false</property>
> </structure>
> <structure>
> <property name="name">Data Cube.commandes.height</property>
> <property name="type">integer</property>
> <property name="isVisible">false</property>
> </structure>
> <structure>
> <property name="name">Data
> Cube.clients.NewTabularHierarchy1.x</property>
> <property name="type">integer</property>
> <property name="isVisible">false</property>
> </structure>
> <structure>
> <property name="name">Data
> Cube.clients.NewTabularHierarchy1.y</property>
> <property name="type">integer</property>
> <property name="isVisible">false</property>
> </structure>
> <structure>
> <property name="name">Data
> Cube.clients.NewTabularHierarchy1.width</property>
> <property name="type">integer</property>
> <property name="isVisible">false</property>
> </structure>
> <structure>
> <property name="name">Data
> Cube.clients.NewTabularHierarchy1.height</property>
> <property name="type">integer</property>
> <property name="isVisible">false</property>
> </structure>
> <structure>
> <property name="name">Data
> Cube.produits.NewTabularHierarchy.width</property>
> <property name="type">integer</property>
> <property name="isVisible">false</property>
> </structure>
> <structure>
> <property name="name">Data
> Cube.produits.NewTabularHierarchy.height</property>
> <property name="type">integer</property>
> <property name="isVisible">false</property>
> </structure>
> <structure>
> <property name="name">commandes.commandes.x</property>
> <property name="type">integer</property>
> <property name="isVisible">false</property>
> </structure>
> <structure>
> <property name="name">commandes.commandes.y</property>
> <property name="type">integer</property>
> <property name="isVisible">false</property>
> </structure>
> <structure>
> <property
> name="name">commandes.produits.NewTabularHierarchy.x</property >
> <property name="type">integer</property>
> <property name="isVisible">false</property>
> </structure>
> <structure>
> <property
> name="name">commandes.produits.NewTabularHierarchy.y</property >
> <property name="type">integer</property>
> <property name="isVisible">false</property>
> </structure>
> <structure>
> <property name="name">commandes.commandes.width</property>
> <property name="type">integer</property>
> <property name="isVisible">false</property>
> </structure>
> <structure>
> <property name="name">commandes.commandes.height</property>
> <property name="type">integer</property>
> <property name="isVisible">false</property>
> </structure>
> <structure>
> <property
> name="name">commandes.clients.NewTabularHierarchy1.x</property >
> <property name="type">integer</property>
> <property name="isVisible">false</property>
> </structure>
> <structure>
> <property
> name="name">commandes.clients.NewTabularHierarchy1.y</property >
> <property name="type">integer</property>
> <property name="isVisible">false</property>
> </structure>
> <structure>
> <property
> name="name">commandes.clients.NewTabularHierarchy1.width</property >
> <property name="type">integer</property>
> <property name="isVisible">false</property>
> </structure>
> <structure>
> <property
> name="name">commandes.clients.NewTabularHierarchy1.height</property >
> <property name="type">integer</property>
> <property name="isVisible">false</property>
> </structure>
> <structure>
> <property
> name="name">commandes.produits.NewTabularHierarchy.width</property >
> <property name="type">integer</property>
> <property name="isVisible">false</property>
> </structure>
> <structure>
> <property
> name="name">commandes.produits.NewTabularHierarchy.height</property >
> <property name="type">integer</property>
> <property name="isVisible">false</property>
> </structure>
> </list-property>
> <property name="Data Cube.commandes.x">342</property>
> <property name="Data Cube.commandes.y">26</property>
> <property name="Data Cube.produits.NewTabularHierarchy.x">175</property>
> <property name="Data Cube.produits.NewTabularHierarchy.y">123</property>
> <property name="Data Cube.commandes.width">150</property>
> <property name="Data Cube.commandes.height">200</property>
> <property name="Data Cube.clients.NewTabularHierarchy1.x">26</property>
> <property name="Data Cube.clients.NewTabularHierarchy1.y">16</property>
> <property name="Data
> Cube.clients.NewTabularHierarchy1.width">150</property>
> <property name="Data
> Cube.clients.NewTabularHierarchy1.height">200</property>
> <property name="Data
> Cube.produits.NewTabularHierarchy.width">150</property>
> <property name="Data
> Cube.produits.NewTabularHierarchy.height">200</property>
> <property name="commandes.commandes.x">271</property>
> <property name="commandes.commandes.y">48</property>
> <property name="commandes.produits.NewTabularHierarchy.x">15</property >
> <property name="commandes.produits.NewTabularHierarchy.y">24</property >
> <property name="commandes.commandes.width">150</property>
> <property name="commandes.commandes.height">200</property>
> <property name="commandes.clients.NewTabularHierarchy1.x">27</property >
> <property name="commandes.clients.NewTabularHierarchy1.y">102</property >
> <property
> name="commandes.clients.NewTabularHierarchy1.width">150</property >
> <property
> name="commandes.clients.NewTabularHierarchy1.height">200</property >
> <property
> name="commandes.produits.NewTabularHierarchy.width">150</property >
> <property
> name="commandes.produits.NewTabularHierarchy.height">200</property >
> <list-property name="propertyBindings">
> <structure>
> <property name="name">FILELIST</property>
> <property name="id">6</property>
> <expression name="value">"C:\\workspace
> ganymede\\test\\test.xml"</expression>
> </structure>
> </list-property>
> <property name="iconFile">/templates/blank_report.gif</property>
> <data-sources>
> <oda-data-source
> extensionID="org.eclipse.datatools.enablement.oda.xml"
> name="XMLDataSource" id="6"/>
> </data-sources>
> <data-sets>
> <oda-data-set
> extensionID="org.eclipse.datatools.enablement.oda.xml.dataSet "
> name="clients" id="7">
> <list-property name="filter">
> <structure>
> <property name="operator">ge</property>
> <expression name="expr">row["id"]</expression>
> <simple-property-list name="value1">
> <value>0</value>
> </simple-property-list>
> </structure>
> </list-property>
> <structure name="cachedMetaData">
> <list-property name="resultSet">
> <structure>
> <property name="position">1</property>
> <property name="name">id</property>
> <property name="dataType">integer</property>
> </structure>
> <structure>
> <property name="position">2</property>
> <property name="name">client</property>
> <property name="dataType">string</property>
> </structure>
> </list-property>
> </structure>
> <property name="dataSource">XMLDataSource</property>
> <list-property name="resultSet">
> <structure>
> <property name="position">1</property>
> <property name="name">id</property>
> <property name="nativeName">id</property>
> <property name="dataType">integer</property>
> <property name="nativeDataType">4</property>
> </structure>
> <structure>
> <property name="position">2</property>
> <property name="name">client</property>
> <property name="nativeName">client</property>
> <property name="dataType">string</property>
> <property name="nativeDataType">12</property>
> </structure>
> </list-property>
> <property
> name="queryText"> table0#-TNAME-#table0#:#[/root/clients/client]#:#{id;INT;/@i d},{client;STRING;} </property>
>
> <xml-property name="designerValues"><![CDATA[<?xml
> version="1.0" encoding="UTF-8"?>
> <model:DesignValues
> xmlns:design="http://www.eclipse.org/datatools/connectivity/oda/design"
> xmlns:model="http://www.eclipse.org/birt/report/model/adapter/odaModel">
> <Version>1.0</Version>
> <design:ResultSets derivedMetaData="true">
> <design:resultSetDefinitions>
> <design:resultSetColumns>
> <design:resultColumnDefinitions>
> <design:attributes>
> <design:name>id</design:name>
> <design:position>1</design:position>
> <design:nativeDataTypeCode>4</design:nativeDataTypeCode>
> <design:precision>-1</design:precision>
> <design:scale>-1</design:scale>
> <design:nullability>Unknown</design:nullability>
> </design:attributes>
> <design:usageHints>
> <design:label>id</design:label>
> <design:formattingHints/>
> </design:usageHints>
> </design:resultColumnDefinitions>
> <design:resultColumnDefinitions>
> <design:attributes>
> <design:name>client</design:name>
> <design:position>2</design:position>
> <design:nativeDataTypeCode>12</design:nativeDataTypeCode>
> <design:precision>-1</design:precision>
> <design:scale>-1</design:scale>
> <design:nullability>Unknown</design:nullability>
> </design:attributes>
> <design:usageHints>
> <design:label>client</design:label>
> <design:formattingHints/>
> </design:usageHints>
> </design:resultColumnDefinitions>
> </design:resultSetColumns>
> </design:resultSetDefinitions>
> </design:ResultSets>
> </model:DesignValues>]]></xml-property>
> <list-property name="privateDriverProperties">
> <ex-property>
> <name>MAX_ROW</name>
> <value>-1</value>
> </ex-property>
> <ex-property>
> <name>XML_FILE</name>
> </ex-property>
> </list-property>
> </oda-data-set>
> <oda-data-set
> extensionID="org.eclipse.datatools.enablement.oda.xml.dataSet "
> name="produits" id="8">
> <list-property name="filter">
> <structure>
> <property name="operator">ge</property>
> <expression name="expr">row["id"]</expression>
> <simple-property-list name="value1">
> <value>0</value>
> </simple-property-list>
> </structure>
> </list-property>
> <structure name="cachedMetaData">
> <list-property name="resultSet">
> <structure>
> <property name="position">1</property>
> <property name="name">id</property>
> <property name="dataType">integer</property>
> </structure>
> <structure>
> <property name="position">2</property>
> <property name="name">produit</property>
> <property name="dataType">string</property>
> </structure>
> </list-property>
> </structure>
> <property name="dataSource">XMLDataSource</property>
> <list-property name="resultSet">
> <structure>
> <property name="position">1</property>
> <property name="name">id</property>
> <property name="nativeName">id</property>
> <property name="dataType">integer</property>
> <property name="nativeDataType">4</property>
> </structure>
> <structure>
> <property name="position">2</property>
> <property name="name">produit</property>
> <property name="nativeName">produit</property>
> <property name="dataType">string</property>
> <property name="nativeDataType">12</property>
> </structure>
> </list-property>
> <property
> name="queryText"> table0#-TNAME-#table0#:#[/root/produits/produit]#:#{id;INT;/ @id},{produit;STRING;} </property>
>
> <xml-property name="designerValues"><![CDATA[<?xml
> version="1.0" encoding="UTF-8"?>
> <model:DesignValues
> xmlns:design="http://www.eclipse.org/datatools/connectivity/oda/design"
> xmlns:model="http://www.eclipse.org/birt/report/model/adapter/odaModel">
> <Version>1.0</Version>
> <design:ResultSets derivedMetaData="true">
> <design:resultSetDefinitions>
> <design:resultSetColumns>
> <design:resultColumnDefinitions>
> <design:attributes>
> <design:name>id</design:name>
> <design:position>1</design:position>
> <design:nativeDataTypeCode>4</design:nativeDataTypeCode>
> <design:precision>-1</design:precision>
> <design:scale>-1</design:scale>
> <design:nullability>Unknown</design:nullability>
> </design:attributes>
> <design:usageHints>
> <design:label>id</design:label>
> <design:formattingHints/>
> </design:usageHints>
> </design:resultColumnDefinitions>
> <design:resultColumnDefinitions>
> <design:attributes>
> <design:name>produit</design:name>
> <design:position>2</design:position>
> <design:nativeDataTypeCode>12</design:nativeDataTypeCode>
> <design:precision>-1</design:precision>
> <design:scale>-1</design:scale>
> <design:nullability>Unknown</design:nullability>
> </design:attributes>
> <design:usageHints>
> <design:label>produit</design:label>
> <design:formattingHints/>
> </design:usageHints>
> </design:resultColumnDefinitions>
> </design:resultSetColumns>
> </design:resultSetDefinitions>
> </design:ResultSets>
> </model:DesignValues>]]></xml-property>
> <list-property name="privateDriverProperties">
> <ex-property>
> <name>MAX_ROW</name>
> <value>-1</value>
> </ex-property>
> <ex-property>
> <name>XML_FILE</name>
> </ex-property>
> </list-property>
> </oda-data-set>
> <oda-data-set
> extensionID="org.eclipse.datatools.enablement.oda.xml.dataSet "
> name="commandes" id="9">
> <structure name="cachedMetaData">
> <list-property name="resultSet">
> <structure>
> <property name="position">1</property>
> <property name="name">idClient</property>
> <property name="dataType">integer</property>
> </structure>
> <structure>
> <property name="position">2</property>
> <property name="name">idProduit</property>
> <property name="dataType">integer</property>
> </structure>
> <structure>
> <property name="position">3</property>
> <property name="name">commande</property>
> <property name="dataType">integer</property>
> </structure>
> </list-property>
> </structure>
> <property name="dataSource">XMLDataSource</property>
> <list-property name="resultSet">
> <structure>
> <property name="position">1</property>
> <property name="name">idClient</property>
> <property name="nativeName">idClient</property>
> <property name="dataType">integer</property>
> <property name="nativeDataType">4</property>
> </structure>
> <structure>
> <property name="position">2</property>
> <property name="name">idProduit</property>
> <property name="nativeName">idProduit</property>
> <property name="dataType">integer</property>
> <property name="nativeDataType">4</property>
> </structure>
> <structure>
> <property name="position">3</property>
> <property name="name">commande</property>
> <property name="nativeName">commande</property>
> <property name="dataType">integer</property>
> <property name="nativeDataType">4</property>
> </structure>
> </list-property>
> <property
> name="queryText"> table0#-TNAME-#table0#:#[/root/commandes/commande]#:#{idClie nt;INT;/@idClient},{idProduit;INT;/@idProduit},{commande;INT ;} </property>
>
> <xml-property name="designerValues"><![CDATA[<?xml
> version="1.0" encoding="UTF-8"?>
> <model:DesignValues
> xmlns:design="http://www.eclipse.org/datatools/connectivity/oda/design"
> xmlns:model="http://www.eclipse.org/birt/report/model/adapter/odaModel">
> <Version>1.0</Version>
> <design:ResultSets derivedMetaData="true">
> <design:resultSetDefinitions>
> <design:resultSetColumns>
> <design:resultColumnDefinitions>
> <design:attributes>
> <design:name>idClient</design:name>
> <design:position>1</design:position>
> <design:nativeDataTypeCode>4</design:nativeDataTypeCode>
> <design:precision>-1</design:precision>
> <design:scale>-1</design:scale>
> <design:nullability>Unknown</design:nullability>
> </design:attributes>
> <design:usageHints>
> <design:label>idClient</design:label>
> <design:formattingHints/>
> </design:usageHints>
> </design:resultColumnDefinitions>
> <design:resultColumnDefinitions>
> <design:attributes>
> <design:name>idProduit</design:name>
> <design:position>2</design:position>
> <design:nativeDataTypeCode>4</design:nativeDataTypeCode>
> <design:precision>-1</design:precision>
> <design:scale>-1</design:scale>
> <design:nullability>Unknown</design:nullability>
> </design:attributes>
> <design:usageHints>
> <design:label>idProduit</design:label>
> <design:formattingHints/>
> </design:usageHints>
> </design:resultColumnDefinitions>
> <design:resultColumnDefinitions>
> <design:attributes>
> <design:name>commande</design:name>
> <design:position>3</design:position>
> <design:nativeDataTypeCode>4</design:nativeDataTypeCode>
> <design:precision>-1</design:precision>
> <design:scale>-1</design:scale>
> <design:nullability>Unknown</design:nullability>
> </design:attributes>
> <design:usageHints>
> <design:label>commande</design:label>
> <design:formattingHints/>
> </design:usageHints>
> </design:resultColumnDefinitions>
> </design:resultSetColumns>
> </design:resultSetDefinitions>
> </design:ResultSets>
> </model:DesignValues>]]></xml-property>
> <list-property name="privateDriverProperties">
> <ex-property>
> <name>MAX_ROW</name>
> <value>-1</value>
> </ex-property>
> <ex-property>
> <name>XML_FILE</name>
> </ex-property>
> </list-property>
> </oda-data-set>
> </data-sets>
> <cubes>
> <tabular-cube name="commandes" id="10">
> <property name="dimensions">
> <tabular-dimension name="produits" id="11">
> <property
> name="defaultHierarchy">NewTabularHierarchy</property>
> <property name="hierarchies">
> <tabular-hierarchy name="NewTabularHierarchy"
> id="12">
> <property name="levels">
> <tabular-level name="id" id="13">
> <property
> name="dataType">integer</property>
> <property
> name="levelType">dynamic</property>
> <property
> name="columnName">id</property>
> <expression
> name="displayColumnName">dataSetRow["produit"]</expression >
> </tabular-level>
> </property>
> <property name="dataSet">produits</property>
> </tabular-hierarchy>
> </property>
> </tabular-dimension>
> <tabular-dimension name="clients" id="15">
> <property
> name="defaultHierarchy">NewTabularHierarchy1</property>
> <property name="hierarchies">
> <tabular-hierarchy name="NewTabularHierarchy1"
> id="16">
> <property name="levels">
> <tabular-level name="id" id="17">
> <property
> name="dataType">integer</property>
> <property
> name="levelType">dynamic</property>
> <property
> name="columnName">id</property>
> <expression
> name="displayColumnName">dataSetRow["client"]</expression >
> </tabular-level>
> </property>
> <property name="dataSet">clients</property>
> </tabular-hierarchy>
> </property>
> </tabular-dimension>
> </property>
> <property name="measureGroups">
> <tabular-measure-group name="Summary Field" id="19">
> <property name="measures">
> <tabular-measure name="commande" id="20">
> <expression
> name="measureExpression">dataSetRow["commande"]</expression >
> <property name="dataType">integer</property>
> </tabular-measure>
> </property>
> </tabular-measure-group>
> </property>
> <property name="dataSet">commandes</property>
> <list-property name="dimensionConditions">
> <structure>
> <list-property name="joinConditions">
> <structure>
> <property name="cubeKey">idProduit</property>
> <property name="hierarchyKey">id</property>
> </structure>
> </list-property>
> <property
> name="hierarchy">NewTabularHierarchy</property>
> </structure>
> <structure>
> <list-property name="joinConditions">
> <structure>
> <property name="cubeKey">idClient</property>
> <property name="hierarchyKey">id</property>
> </structure>
> </list-property>
> <property
> name="hierarchy">NewTabularHierarchy1</property>
> </structure>
> </list-property>
> </tabular-cube>
> </cubes>
> <styles>
> <style name="crosstab-cell" id="4">
> <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="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>
> </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>
> <extended-item extensionName="Crosstab" extensionVersion="2.3.0"
> id="21">
> <property name="measures">
> <extended-item extensionName="MeasureView" id="33">
> <property name="measure">commande</property>
> <property name="detail">
> <extended-item extensionName="AggregationCell"
> id="34">
> <property
> name="aggregationOnRow">clients/id</property>
> <property
> name="aggregationOnColumn">produits/id</property>
> <property name="content">
> <data id="35">
> <property
> name="resultSetColumn">commande_clients/id_produits/id</property >
> </data>
> </property>
> </extended-item>
> </property>
> <property name="header">
> <extended-item extensionName="CrosstabCell" id="36">
> <property name="content">
> <text id="47">
> <property
> name="contentType">html</property>
> <text-property
> name="content"><![CDATA[<VALUE-OF>"ao&amp;#251;t"</VALUE-OF >]]></text-property>
>
> </text>
> <label id="37">
> <text-property
> name="text">commande</text-property>
> </label>
> </property>
> </extended-item>
> </property>
> </extended-item>
> </property>
> <property name="rows">
> <extended-item extensionName="CrosstabView" id="23">
> <property name="views">
> <extended-item extensionName="DimensionView"
> id="42">
> <property name="dimension">clients</property>
> <property name="levels">
> <extended-item extensionName="LevelView"
> name="NewLevel View1" id="43">
> <property
> name="level">clients/id</property>
> <property name="member">
> <extended-item
> extensionName="CrosstabCell" id="44">
> <property name="content">
> <data name="id1" id="45">
> <property
> name="resultSetColumn">id_1</property>
> </data>
> </property>
> </extended-item>
> </property>
> </extended-item>
> </property>
> </extended-item>
> </property>
> </extended-item>
> </property>
> <property name="columns">
> <extended-item extensionName="CrosstabView" id="28">
> <property name="views">
> <extended-item extensionName="DimensionView"
> id="38">
> <property name="dimension">produits</property>
> <property name="levels">
> <extended-item extensionName="LevelView"
> name="NewLevel View" id="39">
> <property
> name="level">produits/id</property>
> <property name="member">
> <extended-item
> extensionName="CrosstabCell" id="40">
> <property name="content">
> <data name="id" id="41">
> <property
> name="resultSetColumn">id</property>
> </data>
> </property>
> </extended-item>
> </property>
> </extended-item>
> </property>
> </extended-item>
> </property>
> </extended-item>
> </property>
> <property name="header">
> <extended-item extensionName="CrosstabCell" id="22"/>
> </property>
> <property name="cube">commandes</property>
> <list-property name="boundDataColumns">
> <structure>
> <property name="name">commande</property>
> <expression
> name="expression">measure["commande"]</expression>
> <property name="dataType">integer</property>
> <property name="aggregateFunction">sum</property>
> </structure>
> <structure>
> <property name="name">id</property>
> <expression
> name="expression">dimension["produits"]["id"]["DisplayName "]</expression>
> <property name="dataType">string</property>
> </structure>
> <structure>
> <property name="name">commande_produits/id</property>
> <expression
> name="expression">measure["commande"]</expression>
> <property name="dataType">integer</property>
> <simple-property-list name="aggregateOn">
> <value>produits/id</value>
> </simple-property-list>
> <property name="aggregateFunction">sum</property>
> </structure>
> <structure>
> <property name="name">id_1</property>
> <expression
> name="expression">dimension["clients"]["id"]["DisplayName "]</expression>
> <property name="dataType">string</property>
> </structure>
> <structure>
> <property
> name="name">commande_clients/id_produits/id</property>
> <expression
> name="expression">measure["commande"]</expression>
> <property name="dataType">integer</property>
> <simple-property-list name="aggregateOn">
> <value>clients/id</value>
> <value>produits/id</value>
> </simple-property-list>
> <property name="aggregateFunction">sum</property>
> </structure>
> </list-property>
> </extended-item>
> </body>
> </report>
>
>
> and here is the XML datasource :
>
> <?xml version="1.0" encoding="UTF-8"?>
> <root>
> <produits>
> <produit id="1">produit 1</produit>
> <produit id="2">produit 2</produit>
> <produit id="3">produit 3</produit>
> <produit id="4">produit 4</produit>
> <produit id="5">produit 5</produit>
> <produit id="6">produit 6</produit>
> <produit id="7">produit 7</produit>
> <produit id="8">produit 8</produit>
> <produit id="9">produit 9</produit>
> <produit id="10">produit 10</produit>
> </produits>
> <categories>
> <categorie id="1">categorie 1</categorie>
> <categorie id="2">categorie 2</categorie>
> <categorie id="3">categorie 3</categorie>
> <categorie id="4">categorie 4</categorie>
> <categorie id="5">categorie 5</categorie>
> <categorie id="6">categorie 6</categorie>
> <categorie id="7">categorie 7</categorie>
> <categorie id="8">categorie 8</categorie>
> <categorie id="9">categorie 9</categorie>
> <categorie id="10">categorie 10</categorie>
> </categories>
> <ventes>
> <client idClient="1" idCategorie="1">
> <vente
> idProduit="7"><quatite>8</quatite><prix>6.96</prix></vente >
> <vente
> idProduit="5"><quatite>8</quatite><prix>2.55</prix></vente >
> <vente
> idProduit="6"><quatite>5</quatite><prix>1.21</prix></vente >
> <vente idProduit="6"><quatite>5</quatite><prix>4</prix></vente >
> <vente
> idProduit="9"><quatite>5</quatite><prix>9.03</prix></vente >
> <vente
> idProduit="5"><quatite>8</quatite><prix>4.06</prix></vente >
> <vente
> idProduit="9"><quatite>2</quatite><prix>8.29</prix></vente >
> <vente
> idProduit="3"><quatite>8</quatite><prix>7.53</prix></vente >
> <vente
> idProduit="3"><quatite>8</quatite><prix>3.41</prix></vente >
> <vente
> idProduit="7"><quatite>6</quatite><prix>5.77</prix></vente >
> <vente
> idProduit="10"><quatite>6</quatite><prix>5.77</prix></vente >
> </client> <client idClient="1" idCategorie="2">
> <vente
> idProduit="6"><quatite>10</quatite><prix>7.16</prix></vente >
> <vente
> idProduit="8"><quatite>10</quatite><prix>8.68</prix></vente >
> <vente
> idProduit="9"><quatite>9</quatite><prix>9.66</prix></vente >
> <vente
> idProduit="4"><quatite>4</quatite><prix>1.08</prix></vente >
> <vente
> idProduit="2"><quatite>5</quatite><prix>3.84</prix></vente >
> <vente
> idProduit="3"><quatite>4</quatite><prix>3.81</prix></vente >
> <vente
> idProduit="1"><quatite>1</quatite><prix>1.76</prix></vente >
> <vente
> idProduit="5"><quatite>8</quatite><prix>8.33</prix></vente >
> <vente
> idProduit="8"><quatite>9</quatite><prix>9.25</prix></vente >
> <vente
> idProduit="10"><quatite>3</quatite><prix>5.89</prix></vente >
> <vente
> idProduit="8"><quatite>6</quatite><prix>9.95</prix></vente >
> </client>
> <client idClient="1" idCategorie="3">
> <vente
> idProduit="5"><quatite>8</quatite><prix>2.91</prix></vente >
> <vente
> idProduit="4"><quatite>7</quatite><prix>6.3</prix></vente >
> <vente
> idProduit="7"><quatite>2</quatite><prix>6.93</prix></vente >
> <vente
> idProduit="4"><quatite>7</quatite><prix>1.89</prix></vente >
> <vente
> idProduit="4"><quatite>3</quatite><prix>1.54</prix></vente >
> <vente
> idProduit="4"><quatite>9</quatite><prix>3.2</prix></vente >
> <vente
> idProduit="5"><quatite>9</quatite><prix>3.73</prix></vente >
> <vente
> idProduit="9"><quatite>2</quatite><prix>3.17</prix></vente >
> <vente
> idProduit="6"><quatite>3</quatite><prix>6.56</prix></vente >
> <vente
> idProduit="3"><quatite>10</quatite><prix>4.2</prix></vente >
> <vente
> idProduit="9"><quatite>10</quatite><prix>7.62</prix></vente >
> <vente
> idProduit="7"><quatite>4</quatite><prix>6.69</prix></vente >
> <vente
> idProduit="9"><quatite>10</quatite><prix>8.77</prix></vente >
> </client>
> <client idClient="1" idCategorie="4">
> <vente
> idProduit="7"><quatite>5</quatite><prix>8.75</prix></vente >
> <vente
> idProduit="8"><quatite>10</quatite><prix>1.95</prix></vente >
> <vente
> idProduit="4"><quatite>8</quatite><prix>1.83</prix></vente >
> <vente
> idProduit="4"><quatite>3</quatite><prix>8.59</prix></vente >
> <vente
> idProduit="8"><quatite>6</quatite><prix>3.67</prix></vente >
> <vente
> idProduit="5"><quatite>4</quatite><prix>3.52</prix></vente >
> <vente
> idProduit="2"><quatite>8</quatite><prix>4.58</prix></vente >
> <vente
> idProduit="10"><quatite>7</quatite><prix>9.88</prix></vente >
> <vente
> idProduit="8"><quatite>1</quatite><prix>2.13</prix></vente >
> <vente
> idProduit="5"><quatite>1</quatite><prix>1.51</prix></vente >
> <vente
> idProduit="2"><quatite>1</quatite><prix>2.09</prix></vente >
> <vente
> idProduit="8"><quatite>7</quatite><prix>9.27</prix></vente >
> <vente
> idProduit="8"><quatite>3</quatite><prix>6.91</prix></vente >
> <vente
> idProduit="3"><quatite>7</quatite><prix>3.79</prix></vente >
> <vente
> idProduit="10"><quatite>1</quatite><prix>6.41</prix></vente >
> <vente
> idProduit="4"><quatite>6</quatite><prix>7.52</prix></vente >
> </client>
> </ventes>
> </root>
>
Re: problem when define dinamic XML data source [message #365060 is a reply to message #365051] Tue, 09 September 2008 07:16 Go to previous message
mortierm is currently offline mortiermFriend
Messages: 7
Registered: July 2009
Junior Member
it's done.

mortierm
Previous Topic:Error EMF when trying RE API + BirtViewer but not When accessing birt viewer first
Next Topic:Chart Engine API problems creating Pie Chart
Goto Forum:
  


Current Time: Fri Apr 26 17:41:03 GMT 2024

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

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

Back to the top