vishal29bhp Posted April 15, 2009 Share Posted April 15, 2009 Hello JasperServerians, I am passing multiselect values from Main report to Child Report as link parameter by doing some Scriptlet , tricks. I am getting the desired result . But I need to show the selected values of Main report remain selected to Child Report as well in Jasper . Any Suggestions Plz.Vishal Code: Post Edited by Vishal Chawre at 04/15/09 10:07Post Edited by Vishal Chawre at 04/15/09 10:10 Link to comment Share on other sites More sharing options...
kannantechno Posted April 20, 2009 Share Posted April 20, 2009 Hi,Edit the Query by giving the syntax as $X(IN, <Filed Name>, <Parameter name>) in the where condition and configure the reportensure u have define the parameter having the data type as java.util.collectionreg,kannan Link to comment Share on other sites More sharing options...
vishal29bhp Posted April 20, 2009 Author Share Posted April 20, 2009 Yes I am doing the same also getting the values from the link parameter in the Expression $X(IN,<Field>,<Parameter>) and query is excuting but when setting this link parameter values in default expression, so that i can show the selected values in child report , it is not working there. Vishal Link to comment Share on other sites More sharing options...
kannantechno Posted April 20, 2009 Share Posted April 20, 2009 try to assign the value to a variable and give the same in the default expressionlet me know its working or notreg,kannanPost Edited by kannantechno at 04/20/2009 09:40 Link to comment Share on other sites More sharing options...
vishal29bhp Posted April 20, 2009 Author Share Posted April 20, 2009 I used the parameter for it.which is also of type collection , Now by using java.util.Arrys.asList($P{linkParameter}.split(",")) expression setting the default value expression but it is not working. Vishal; Link to comment Share on other sites More sharing options...
swood Posted May 4, 2009 Share Posted May 4, 2009 Have a look at this thread ShermanJaspersoft Link to comment Share on other sites More sharing options...
vishal29bhp Posted May 4, 2009 Author Share Posted May 4, 2009 Thanks Sherman ,I successfully passed multiselect values as link parameter on on drilling to child report.My objective is to set focus those values on child report which had been selected at Main Report.Let me clear this as example.Suppose i selected [Gents Footwear, Ladies Footwear ,Kids Footwear] from Main Report .Now link parameter has "Gents Footwear, Ladies Footwear ,Kids Footwear" value.Again i making Collection from this String using java.Arrays.asList() method.Its working fine to execute query.When i set java.Arrays.asList($P{linkParameter}.split(",")) as Default value Expression in iReport it does not give any result means not shows the default values the report is working fine .When i Hardcoded the values like java.Arrays.asList("Gents Footwear") as Default Value Its shows the Default Value Selected at Child Report.Again i have to press the reset button to clear the values in link parameter which is of type Not Visible.VishalPost Edited by vishal29bhp at 05/04/2009 05:25 Link to comment Share on other sites More sharing options...
swood Posted June 2, 2009 Share Posted June 2, 2009 I can't work out what you are doing based on your description. Show us the JRXML you are using for the parameters and also what the input controls look like. ShermanJaspersoft 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