Jump to content
We've recently updated our Privacy Statement, available here ×

How to use a different data adapter for the subreport


jbeam

Recommended Posts

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.

converted-file.png.0c8ef42df4213c3c0b8432fb2af9e064.png

converted-file.png.11cca0de13406a46b8265cf088de21c3.png

Link to comment
Share on other sites

  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Posted Images

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 account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...