hi everyone,
I want access a parameter in rptlibrary file which is coming from rptdesign file.Dynamically i want to change the username/password in rptlibrary file,Like below one:
<structure>
<property name="name">odaUser</property>
<property name="id">5</property>
<expression name="value">if(params["location"]==20)
{
SIPPI'
}else{
'SSIP'
}
</expression>
</structure>
<oda-data-source extensionID="org.eclipse.birt.report.data.oda.jdbc" name="DataSource" id="5">
<property name="odaDriverClass">oracle.jdbc.driver.OracleDriver</property>
<property name="odaURL">jdbc:oracle:thin:
@gcrad:1521:RAD</property>
<property name="odaUser">DIPPI</property>
<encrypted-property name="odaPassword">REVWX01JU1NJU1NJUFBJ</encrypted-property>
</oda-data-source>
In the above code location is a runtime property coming from rptdesign file.But this property binding is not happening.It is taking the hard coded values for datasource.So,Is it possible to do a property binding in rptlibrary file?