jbeam Posted January 24, 2022 Share Posted January 24, 2022 I’m trying to use a different data adapter for the subreport than for the main report. From what I’ve discovered so far you have to set it to use another connection (figure 1) and have a parameter to retrieve the connection (figure 2). What I can’t figure out is what to put in the Default Value Expression to get the connection. What I found in a 2018 article is to use com.jaspersoft.ireport.designer.utils.Misc.getConnection("opal") but that isn’t working. The name of my data adapter is “opal”. I need some help figuring this out. I feel like I’m so close. Link to comment Share on other sites More sharing options...
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