• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
jasper report doesn't like my EO
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

jasper report doesn't like my EO


  • Subject: jasper report doesn't like my EO
  • From: Theodore Petrosky <email@hidden>
  • Date: Fri, 24 May 2013 19:15:05 -0700 (PDT)

I hope someone can help me with this.

I am creating a report with a sub report. I have a to-many relationship like this:

project to-many projectSteps

since I wanted to print a project with the steps ordered by its dueBy date, I created:

public JRBeanCollectionDataSource theSteps() {
  return new JRBeanCollectionDataSource( ERXArrayUtilities.sortedArraySortedWithKey(this.projectSteps(), "dueBy") );
}

This worked beautifully. I could print to JasperReports and each row of projects would print its steps ordered by the date.

But now, if I try to print the report, it prints once and hangs if I try to print it again.

At first I thought that this was acting as if I had a problem with a second thread was trying to access my EOs. Except I am using ERJasperReports and it carefully creates a new editingContext each time it is run. My next experiment was to delete the subReport from my report and now it prints multiple times with no problem.

So I put the subReport back, and changed my method. I eliminated the above method (theSteps()) and instead just used the relationship as a field. I wanted to prove that my method that is returning the JRBeanCollectionDataSource was not the problem. So I created a field in iReport so correspond to the relationship.

So now I am using only the EO and its relationship pieces.

It fails exactly the same. It appears to fail in ERJRFoundationDataSource's next() method. ERJRFoundationDataSource  implements JRDataSource.

I am at a loss. Since each iteration uses a new editingContext in a new thread, why is this failing? I want to cry.


I hope someone can help.

Ted






 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: jasper report doesn't like my EO
      • From: Jesse Tayler <email@hidden>
  • Prev by Date: Re: ERXPartialEntity doesn't return correct values for classPropertyNames method
  • Next by Date: Re: ERXPartialEntity doesn't return correct values for classPropertyNames method
  • Previous by thread: Re: ERXPartialEntity doesn't return correct values for classPropertyNames method
  • Next by thread: Re: jasper report doesn't like my EO
  • Index(es):
    • Date
    • Thread