Jump to content

Select All in Multi Select


umair

Recommended Posts

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

  • Replies 4
  • Created
  • Last Reply

Top Posters In This Topic

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

  • 2 years later...


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 Kaur

Senior QA Engineer

Link to comment
Share on other sites

  • 4 weeks later...

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`

UNION

SELECT 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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...