cactusbeef Posted March 2, 2017 Share Posted March 2, 2017 I have an Integer parameter LOCATION_COUNT, I want to use it to control which sub report to display. I use the following syntax in my main report. It work as I expected in Studio. But when I publish to server. Only one sub report be publish to server, I had to upload there other sub report by myself. But whatever I give I or 2 in the parameter LOCATION_COUNT it always show one sub report <subreportExpression><![CDATA[$P{SUBREPORT_DIR} + ($P{LOCATION_COUNT}>1? "SCHOOL_SUB02":"SCHOOL2_SUB01") + $P{SUBREPORT_EXT}]]></subreportExpression> 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