javi_123 Posted September 16, 2008 Share Posted September 16, 2008 Hi all,When you add the input control and specify the type as single select query, it does populate all the results in the drop down but if you don't select any value from the drop down list it will display all the results when a user clicks ok. Is it possible to hard code the dropdown to show "All" in the drop down list, so that the user will know that they hav selected all of the results?Cheersjavi Link to comment Share on other sites More sharing options...
rodonell Posted September 16, 2008 Share Posted September 16, 2008 I'm having the opposite problem, when you don't click on something in the drop-box box it doesn't display anything. How did you structure your WHERE statement and parameter to get that to happen? Thanks. Link to comment Share on other sites More sharing options...
gabrielinux Posted September 18, 2008 Share Posted September 18, 2008 I usually do a UNION in my query... something like this:SELECT '%' AS Value, ' All ' AS LabelUNION ALLSELECT MachineName AS Value, MachineName AS Label FROM NC_Workstation Then, in your report query, you would use LIKE:SELECT *FROM NC_WorkstationWHERE MachineName LIKE $P{InputMachineName} This blog post has some examples: http://blog-gabriel.mongefranco.com/2008/07/csv-and-wildcard-searches-in.html 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