Bug 255493 - CSV emitter doesn't work when using separate Run and Render tasks
Summary: CSV emitter doesn't work when using separate Run and Render tasks
Status: NEW
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: BIRT (show other bugs)
Version: 2.2.1   Edit
Hardware: PC Windows XP
: P3 minor with 1 vote (vote)
Target Milestone: ---   Edit
Assignee: Birt-Converter-inbox CLA
QA Contact: Maggie Shen CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-11-17 05:42 EST by Keith Power CLA
Modified: 2010-11-30 03:40 EST (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Keith Power CLA 2008-11-17 05:42:03 EST
Build ID: M20080221-1800

Steps To Reproduce:
1. Use ExecuteCSVReport.zip and CSV emitter from (http://www.actuate.com/products/products-resources.asp?ArticleId=11719)
2. Modify ExecuteReport.java to use a separate RunTask and RenderTask
3. Run against sample report and observe empty CSV file is created


More information:
I checked the BIRT code out from CVS and I've been tracing through it to find out what could be different from the RunAndRender Task approach and the separate RunTask and RenderTask.

The short answer is that the first way pagination defaults to true, but the second way pagination is processed only for 3 specific values. The problem is the value is null, so processing doesn't happen.

To correct this you need to set a value for pagination in the CSV emitters plugin.xml, e.g. like so:

<plugin>
<extension
name="Engine CSV Emitters"
point="org.eclipse.birt.report.engine.emitters">
<emitter
class="org.eclipse.birt.report.engine.emitter.csv.CSVReportEmitter"
format="csv"
pagination="no-pagination"
id="org.eclipse.birt.report.engine.emitter.csv"
mimeType="text/csv"/>
</extension>

</plugin>

Now rebuild the plugin jar and that should do it.

A default value should probably be assigned to pagination if the attribute isn't specified in plugin.xml