Jasper report question
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