dpackwood Posted August 22, 2014 Share Posted August 22, 2014 Using iReport 5.0.0 and JasperServer 4.8.0. I've created a scriptlet in my main report named "TEST". iReport automatically creates a parameter named "TEST_SCRIPTLET". I'm attempting to pass this scriptlet instance to my sub-report using the sub-reports parameters. That appears to be working ok. However, within the sub-report, I am unable to access the parameter (using $P{TEST_SCRIPTLET}), getting a "Parameter not found" error. I thought that perhaps I needed to create a parameter within the sub-report and map it to the passed value. However, creating a parameter manually set's is value to java.lang.String, and any attempts to access the methods of the scriptlet within the sub-report give errors that "String" does not support those methods. I've tried to set the sub-report parameter to "object" and every other option, but I get the same errors.Is there a way to pass a scriptlet to a sub-report and access the methods within the subreport?thanks in advance. 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