-----
Original Message ----
From: Ernesto Reinaldo Barreiro
<ereinaldob@xxxxxx>
To:
birt-dev@xxxxxxxxxxx
Sent: Wednesday, 30 April, 2008 4:36:52 PM
Subject: [birt-dev] problem with linking report parameters with DataSet
parameters onBIRT 2.2.2
Dear BIRT developers,
After migrating from BIRT 2.2.1.1 to BIRT 2.2.2 I'm not able anymore to
link DataSet parameters to "dynamic" report parameters which are
associated to a DataSet. I discover this while working with our own ODA
extensions and at first I though this was because we were missing
something or doing something wrong. After debugging a bit I discover
that the steps involved in the creation of the "standard "
JdbcSelectDataSet where exactly the same as the ones involved in the
creation of our extension.. So, I decided to try to build example using
only JdbcSelectDataSets.
With version 2.2.1.1 I'm able to create a DataSet, link it to dynamic
parameters and later on edit it (DataSet2211). With version 2..2.2 I can
create the DataSet (see DataSet222) but not edit it. I think the
problem
arises because 2.2.2 is failing to correctly create the XML tag:
<design:dynamicValueChoices>: it creates something like:
<design:dynamicValueChoices>
<design:enabled>false</design:enabled>
</design:dynamicValueChoices>
while version 2.2.1.1 creates something like:
<design:dynamicValueChoices>
<design:dataSetDesign>
<design:name>Equipos</design:name>
<design:odaExtensionDataSetId>org.eclipse.birt.report.data.oda.jdbc.JdbcSelectDataSet</design:odaExtensionDataSetId>
<design:dataSourceDesign>
<design:name>Informix</design:name>
<design:odaExtensionId>org.eclipse.birt.report.data.oda.jdbc</design:odaExtensionId>
<design:publicProperties>
<design:properties>
<design:nameValue>
<design:name>odaDriverClass</design:name>
<design:value>com.informix.jdbc.IfxDriver</design:value>
</design:nameValue>
</design:properties>
<design:properties>
<design:nameValue>
<design:name>odaURL</design:name>
<design:value>jdbc:informix-sqli://blifx1:1526/ma_prc_maquinaria:INFORMIXSERVER=olblifx1;user=Fccsg\ema;password=Fccsa2004;DBDATE=DMY4;IFX_TRIMTRAILINGSPACES=1;IFX_USEPUT=1;IFX_BATCHUPDATE_PER_SPEC=0;OPTOFC=1;DB_LOCALE=es_es.CP1252</design:value>
</design:nameValue>
</design:properties>
<design:properties>
<design:nameValue>
<design:name>odaUser</design:name>
</design:nameValue>
</design:properties>
<design:properties>
<design:nameValue>
<design:name>odaPassword</design:name>
</design:nameValue>
</design:properties>
<design:properties>
<design:nameValue>
<design:name>odaJndiName</design:name>
</design:nameValue>
</design:properties>
<design:properties>
<design:nameValue>
<design:name>OdaConnProfileName</design:name>
</design:nameValue>
</design:properties>
<design:properties>
<design:nameValue>
<design:name>OdaConnProfileStorePath</design:name>
</design:nameValue>
</design:properties>
</design:publicProperties>
</design:dataSourceDesign>
<design:query>
<design:queryText>select * from
maqeqc</design:queryText>
</design:query>
<design:publicProperties>
<design:properties>
<design:nameValue>
<design:name>queryTimeOut</design:name>
</design:nameValue>
</design:properties>
</design:publicProperties>
<design:resultSets>
<design:resultSetDefinitions>
<design:resultSetColumns>
<design:resultColumnDefinitions>
<design:attributes>
<design:name>equ_eqc</design:name>
<design:position>1</design:position>
<design:nativeDataTypeCode>12</design:nativeDataTypeCode>
<design:uiHints>
<design:displayName>equ_eqc</design:displayName>
</design:uiHints>
</design:attributes>
</design:resultColumnDefinitions>
<design:resultColumnDefinitions>
<design:attributes>
<design:name>com_eqc</design:name>
<design:position>2</design:position>
<design:nativeDataTypeCode>12</design:nativeDataTypeCode>
<design:uiHints>
<design:displayName>com_eqc</design:displayName>
</design:uiHints>
</design:attributes>
</design:resultColumnDefinitions>
<design:resultColumnDefinitions>
<design:attributes>
<design:name>den_eqc</design:name>
<design:position>3</design:position>
<design:nativeDataTypeCode>12</design:nativeDataTypeCode>
<design:uiHints>
<design:displayName>den_eqc</design:displayName>
</design:uiHints>
</design:attributes>
</design:resultColumnDefinitions>
</design:resultSetColumns>
</design:resultSetDefinitions>
</design:resultSets>
</design:dataSetDesign>
<design:enabled>true</design:enabled>
<design:valueColumn>dataSetRow["equ_eqc"]</design:valueColumn>
<design:displayNameColumn>dataSetRow["den_eqc"]</design:displayNameColumn>
</design:dynamicValueChoices>
(See attachment for complete report XML).
Am I missing something? Or is this a bug?
Best regards,
Ernesto
*************************************************************
Este correo ha sido procesado por el antivirus del Grupo FCC.
*************************************************************