manshack_one Posted January 7, 2010 Share Posted January 7, 2010 Anybody know how I could make it possible to add a checkbox input control that would make the report print once for each selected item in a multi-select query input control?Ex.I have a multiselect query input control that allows choosing multiple office locations. The report reads that as a collection and utilizes a $X{IN} statement to pull the report. My user is wanting to be able to print that report once for each of the selected locations so that the information in the report is specific to one location only. This needs to be controlled by a checkbox labeled something like "Print Separately?". When it's checked the report will print once for each selected location. When it's not checked the report will print as normal which includes all the locations on the same report. Any suggestions? Link to comment Share on other sites More sharing options...
sjongenelen Posted January 8, 2010 Share Posted January 8, 2010 i would suggest, to create a REPORT GROUP in ireport, and put in a group expression: ($X{IN} ? $F{location}: other) this way, when $X{IN} = true, the grouping wil be done on $F{location} else do nothing or group other. then, ofcourse, check 'start on new page' 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