greg_20 Posted February 27, 2017 Share Posted February 27, 2017 Hi all, I have the following expression on a subreport "Print When Expression": $P{Show_Customer_Synopsis}==Boolean.TRUE This works fine when running the report on Jasper Server and shows/hides the subreport as desired, based on the selection of a checkbox. The issue I am having is that when I schedule the report to run, using JASPER SERVER/Scheduled Jobs, the subreport does not show/hide based on the selected parameter value. It does not show at all. The parameter checkbox does show when I make the schedule and all the other base subreports will run and (in this case) attach to an e-mail properly. If I remove the "Print When Expression" and leave it blank the sub report does display in the resulting e-mail attachment. Am I using an incorrect statement for the "Print When Expression"? Is there a server setting that would affect the handling of the "Print When Expression"? Any insite would be appreciated. thanks! Link to comment Share on other sites More sharing options...
hozawa Posted February 27, 2017 Share Posted February 27, 2017 There's a "Parameters" tab in the schedule menu. You'll need to set all the parameters there. http://community.jaspersoft.com/documentation/tibco-jasperreports-server-user-guide/v630/setting-output-options Link to comment Share on other sites More sharing options...
greg_20 Posted February 27, 2017 Author Share Posted February 27, 2017 Thank you for the suggestion hozawa, but I have set the parameters via the parameters tab.When I check the {Show_Customer_Synopsis} parameter (checkbox) on the scheduled report, and run the schedule, it does not include the associated subreport, but if I run the same report from the library of jasper server (selecting the checkbox) it does include the sub report.I can't help but think it has something to do with the "Print When Expression" handling since if I have no "Print When Expression" then it will include the subreport in the scheduled output. Currently I use the expression: $P{Show_Customer_Synopsis}==Boolean.TRUE 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