kavita.negi Posted October 18, 2013 Share Posted October 18, 2013 I have a input control that shows checkboxs to select any particular value .By default one value ( top most) is selected.I want to select all the values of a mutiselect check box by default on jasper server. Kind regards,Kavita Link to comment Share on other sites More sharing options...
ajinkya_c Posted October 21, 2013 Share Posted October 21, 2013 Hi,Try optional prompt with input control so that if no values check then it takes all values of list by default.OrUse optional prompt with dynamic where condition i.e (where condition in parameter $P!{})If no value select from list then where condition not involve in query hence all values get from list. Hope this helps.Thanks,Ajinkya Link to comment Share on other sites More sharing options...
kavita.negi Posted October 21, 2013 Author Share Posted October 21, 2013 would you specify the query syntax how to use where Link to comment Share on other sites More sharing options...
ajinkya_c Posted October 21, 2013 Share Posted October 21, 2013 Select *From Table_nameWhere F2=$P{P2}$P!{P1}P1 parameter expression== iif(($P{P1}==null? ' ' : "AND F1=$P{P1}")So if no values select from list then no parameter used in where condition.When some value select from list then AND F1=$P{P1} part involved in query.ThanksAjinkya Link to comment Share on other sites More sharing options...
kavita.negi Posted October 22, 2013 Author Share Posted October 22, 2013 Hi ajinkya_c Thanks for answer .I read article but I am confused .How the things happen. Link to comment Share on other sites More sharing options...
kavita.negi Posted November 12, 2013 Author Share Posted November 12, 2013 I found a solution to my problem by modyfing the default parameter template file and setting the checked option true .It show all the values selected .But while getting these parameters inside custom jre source java code they are empty. Will you explain why nothing is transfer even after puttting check mark on all check boxes. 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