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 protected])
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com
This email sent to [email protected]