Jump to content
Changes to the Jaspersoft community edition download ×

passing a list to JasperFillManager.fillReport


fviscomi

Recommended Posts

Hi all and thanks for yours answer.

I need to pass a list to JasperFillManager.fillReport.

I've a class like this:

public class DataBean {
   private String name;
   private String country;

   public String getName() {
      return name;
   }

   public void setName(String name) {
      this.name = name;
   }

   public String getCountry() {
      return country;
   }

   public void setCountry(String country) {
      this.country = country;
   }

public List<String> getdta(){

List<> lista=new arraList<String>();

lista.add("ss");

lista.add("rr");

  }
}

 

 

Now I fill  the report:

JasperFillManager.fillReport( sourceFileName, parameters, beanColDataSource);

But in the IReport designer i can choose only string and not list.

 

any suggest is really appreciated.

francesco

Italy

 

 

Link to comment
Share on other sites

  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

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...