If I run sub reports on their own, they work. If I call them from a main report, passing in the same parameters, I get zero values.
Is there any possible way to see what parameters either the main report is passing to each sub report, or, even better, to see what parameters the sub report is using in its queries?
I notice that report studio has no log4j.properties anywhere in its installation dirs.
I assume what you are asking is to see the values of parameters being passed from main to sub report.
You can simply display your paramters in the sub report title section and run the main report again to see what values are being passed to the sub report. Make sure to add some markers around the displayed values such as
"parm 1 ="+$P(parm1}+";"
to help you tell whether there's any leading or trailing spaces/white charatcters in the parm that will crew up your select where condition in the query.
Hi there --
Try this, maybe it helps:
You can print out information to the console as described in How to get Jaspersoft Studio logging output from within scriptlet.
Or you probably want to enable FINE-level logging for the specific class you're interested in. See Configuring Apache Commons Logging and Log4J in Jaspersoft Studio and https://community.jaspersoft.com/questions/841628/it-possible-log-genera... for an example.