• 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 question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Jasper report question


  • Subject: Jasper report question
  • From: Theodore Petrosky <email@hidden>
  • Date: Fri, 30 Mar 2012 10:34:47 -0700 (PDT)

I am looking at the JasperReport example and I got it working beautifully with a fetch. I don't understand what to pass in if I have an object. in the example,


ERJRFetchSpecificationReportTask reportTask = new ERJRFetchSpecificationReportTask(fs, "StudioRevenueReport.jasper", parameters);

fs is a fetchspec. I already have the EO that I want to to a report on. Maybe I am reading too much into this?

public static Callable<File> createBriefReportTask(Brief theBrief) {

	String reportDescription = "A report that subtotals revenue by Studio and lists the Movie revenue detail for each Studio";

	HashMap<String, Object> parameters = new HashMap<String, Object>();
	parameters.put("reportDescription", reportDescription);
	parameters.put("userName", "WOWODC Demo");

	// Builder pattern for constructor since.


ERJRFetchSpecificationReportTask reportTask = new ERJRFetchSpecificationReportTask(fs, "StudioRevenueReport.jasper", parameters);

	return reportTask;
}

I want to pass in 'theBrief' to JasperReports. I guess I could be silly and create a fetchspecification that returns theBrief.

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

  • Prev by Date: Re: Action
  • Next by Date: Re: D2W: Pattern for complex object creation
  • Previous by thread: Re: Pushing Guice in WOInject all the way down ?
  • Next by thread: ERPDFGeneration with FOP and examples
  • Index(es):
    • Date
    • Thread