Jump to content
Changes to the Jaspersoft community edition download ×

how to pass parameters for mainreports in java


Recommended Posts

  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Create New...