kavi_mathi Posted February 20, 2014 Share Posted February 20, 2014 I m passing Parameters from first report to the second report Eg: param1 ,param2. In the second report , some calculations and processes are to be done with the passed parameters param1 ,param2 . These calcuations are to be done before query execution. So in the query , I m using a new parameter $P!{calculate}. The parameter 'cacluate' calls a java method and takes input as param1 ,param2.But the values of the param1 and param2 are printed as 'null' before query execution . The original value is printed in the fill portion of the report after query execution. How to get the value of the parameter before query execution? Link to comment Share on other sites More sharing options...
sanbez Posted February 21, 2014 Share Posted February 21, 2014 Try move $P{calculate} down in list of parameters in iReport(Studio?). The example:Parametersparam1param2calculateSometimes order of parameters (variables?) is important Link to comment Share on other sites More sharing options...
kavi_mathi Posted March 10, 2014 Author Share Posted March 10, 2014 When we try this in the Server , the parameters are not getting passed . The reason may be I m trying to get hold in the Query Execution itself . But not sure. Link to comment Share on other sites More sharing options...
kavi_mathi Posted March 10, 2014 Author Share Posted March 10, 2014 Thanks for the suggestion. The order of Parameters are followed .Inspite of that , the parameters are null in the Java method. 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