prasadkvvd Posted March 21, 2007 Share Posted March 21, 2007 hi iam running my report in i reports 1.3.0. my report is having mainreport and subreport when iam passsing parameters iam getting error. can any one tell how to pass parameters using java class [file name=java__method.txt size=1772] Link to comment Share on other sites More sharing options...
karucita Posted March 21, 2007 Share Posted March 21, 2007 I see your code..and i think that you forgot send the parameters.. You have a map called parameters, so you have to put all the information that you need to send the report.. for example: if you are working with objects you can use:parameter.put("name", object.getname());Now, you have data in your map, now in ireport you have to declare this parameter "name"... pls go to view -> parameters->new.. and declare the parameter "name" don´t forget: if the parameter "name" is String in Java you must declare it as String in ireport..It´s easy.. I hope that it could be usefull for u.. see u.. 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