Jump to content
We've recently updated our Privacy Statement, available here ×

danbos

Members
  • Posts

    4
  • Joined

  • Last visited

danbos's Achievements

Rookie

Rookie (2/14)

  • Week One Done
  • One Month Later
  • One Year In
  • First Post Rare
  • Conversation Starter Rare

Recent Badges

0

Reputation

  1. This is the error message that I'm getting when I try to preview the subreport Unknown property 'firstName' on class 'class beansforjasper.Company' which tells me that the subreport is looking for fields in class beansforjasper.Company when it's supposed to look in beansforjasper.Person and I can't seem to figure out how to change that property
  2. Hi everyone once again :) I have problems with creating subreports, I have figure out how to link the subreport to the main report but I don't understand how to make the subreport look into a different class to search for its fields. From looking at different guides I understand this was an option in earlier versions of iReport but the new one is quite different. Does anyone know how to change the class a subreport will look for to extract fields from? Thanks in advance.
  3. Hi everyone, I have just started using JasperReports and I am having some issues accessing certain fields from my data source. Basically i have 2 classes as a Datasource, Company and Person. Person is a very simple class with few fields, Company is also quite simple but it contains an ArrayList<Person> containing a list of Person class objects. My factory class creates 15 instances of the Person class, adds 5 them to 1 ArrayList and there is 3 ArrayLists in total. 3 Company objects are then initiated with the 3 created ArrayLists. Factory class then adds the 3 instances of the Company class into another ArrayList which is passed to JasperReports. So basically its a nested ArrayList that is getting passed. In jasper reports I have setup datasource properly (at least the test says so) and I am able to see all the fields when I edit the query. I can access information from company fields but not from the Person field. This is the guide I followed but a lot of options have changed since then http://knol.google.com/k/jasper-reports-working-with-beans-and-sub-report#Specify_the_Data_Source_for_the_Sub_Report Does anyone know why this might be happening and how do I go about fixing it? Thanks in advance.
  4. Hi everyone, I have just started using JasperReports and I am having some issues accessing certain fields from my data source. Basically i have 2 classes as a Datasource, Company and Person. Person is a very simple class with few fields, Company is also quite simple but it contains an ArrayList<Person> containing a list of Person class objects. My factory class creates 15 instances of the Person class, adds 5 them to 1 ArrayList and there is 3 ArrayLists in total. 3 Company objects are then initiated with the 3 created ArrayLists. Factory class then adds the 3 instances of the Company class into another ArrayList which is passed to JasperReports. So basically its a nested ArrayList that is getting passed. In jasper reports I have setup datasource properly (at least the test says so) and I am able to see all the fields when I edit the query. I can access information from company fields but not from the Person field. Does anyone know why this might be happening and how do I go about fixing it? Thanks in advance.
×
×
  • Create New...