Nicolas Drouin Posted April 22, 2022 Posted April 22, 2022 I would like to use different Dataadapter depending on the context by passing a parameter to it.I tried this solution but it doesn't work :<propertyExpression name="net.sf.jasperreports.data.adapter"><![CDATA[$P{DataAdapterLocation}]]></propertyExpression><parameter name="DataAdapterLocation" class="java.lang.String" evaluationTime="Early"> <defaultValueExpression><![CDATA["default/path/to/DataAdapterFile"]]></defaultValueExpression></parameter>Can you help me ?
muhammad.salman Posted April 25, 2022 Posted April 25, 2022 Please pass connection in Connection Expression.example: java.sql.DriverManager.getConnection("jdbc:postgresql://HostServer:Port/DBName", "UserName", "Password")
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now