umair Posted May 5, 2008 Share Posted May 5, 2008 While creating a Control in a report: I created an Input Control with the Type "Multi-Select Query".Now, i can see the values listed as multiple select options.But how can i adjust this control so i can have an option to 'Select All'.Right now, i can select all options, individually.But i need one option as 'Select All' among other options.How would i achieve that ? Link to comment Share on other sites More sharing options...
mdahlman Posted May 8, 2008 Share Posted May 8, 2008 Hi umair, Generally you can achieve the effect that you are describing by selecting nothing in the multi-select input control. Ctrl-click to unselect any existing value. Then the $X{} syntax correctly resolves to the trivial clause "0=0" and queries on all values. This isn't exactly what you requested, but in many cases it gives the desired result. If explicit support for the choice of ALL seems important, please log an enhancement request. Regards,Matt Link to comment Share on other sites More sharing options...
vpremkumar Posted July 20, 2010 Share Posted July 20, 2010 Hi Matt , Were you able to achieve 'Select All' option in 3.7 jasper server? Will appreciate any inputs Thanks,Vandana Link to comment Share on other sites More sharing options...
ramnik Posted July 20, 2010 Share Posted July 20, 2010 1. We have option -> Select All available as part of Dynamic Filter in adhoc editor [ 3.7 Pro feature]2. With Multi-select query input control , the option to select All is not available in 3.7 [ as per my knowledge ] Ramnik KaurSenior QA Engineer Link to comment Share on other sites More sharing options...
scottn Posted August 17, 2010 Share Posted August 17, 2010 The way we do it for all input controls is by adding an "All" option to the input control query, i.e.: SELECT "All" AS `DISPLAY_NAME`UNIONSELECT DISPLAY_NAME FROM TABLE That then makes the first option always "All". Then to handle that in the report, we use something like this: ($X{IN,'All', parameter_mlist} OR $X{IN,DISPLAY_NAME,parameter_mlist}) So basically the logic will accept everything if "All" is selected because it short circuits the logic before it gets to the second check where it actually looks at the column in the database. 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