manakhimova Posted September 30, 2008 Share Posted September 30, 2008 Does anybody know, how to pre-select all options for 'multi-select query' input control? Link to comment Share on other sites More sharing options...
gabrielinux Posted October 2, 2008 Share Posted October 2, 2008 I'm not sure how you can do that, but there is a work around. You can always append a value called "All" whose value is a "%" sign. See this example: http://jasperforge.org/plugins/espforum/view.php?group_id=112&forumid=102&topicid=45590 Link to comment Share on other sites More sharing options...
manakhimova Posted October 2, 2008 Author Share Posted October 2, 2008 Thanks for idea and great article on your blog :-)As I'm using "$X{IN, column_name, listOfValues}", it sems like simbol "%" can't help me. So I set by default$P{listOfValues}=Arrays.asList(new Object[]{"All"}) and use this kind of parameter for sub-query:$P{listOfValues}.contains("All") ? "" : " AND $X{IN, column_name, listOfValues} " Link to comment Share on other sites More sharing options...
gabrielinux Posted October 2, 2008 Share Posted October 2, 2008 Oh now I see what you are doing. The example above is for the SQL query itself, not for parameters, so you are correct -- it won't work in this case. But I think the parameter above should work. It makes sense to append " AND $X{IN, column_name, listOfValues}" only when the listOfValues does not contain All. Link to comment Share on other sites More sharing options...
jasperjones999 Posted June 18, 2018 Share Posted June 18, 2018 gabrielinuxdo not post a link to a 1000 pages of help or comments, a link to Google would have been more useful, your link was not.moderators remove gabrielinux link..... just wastes time 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