PDA

View Full Version : How to pass parameter to BIRT report?



aghelfi
06-29-2006, 08:01 AM
Hi all,
we have some birt report that ask parameter ( date_start , date_end) when the user click on the report.

It' s possible to modify the xaction file and dinamicaly build date_start and date_end ( via javascript) whithout changing the .rptdesign file?

In this way we could use differen .xaction for scheduled work but the same .rptdesing files.

We are not able even setting the parameter in the default of the xaction

mbatchelor
06-30-2006, 07:08 AM
Please see our sample solution which has a parameterized BIRT report example.

aghelfi
07-19-2006, 04:16 AM
Now I've done, but I've a new problem.
It's OK if the report is html but there is a NullPointerException if the output-type is pdf:

14:02:33,526 INFO [STDOUT] java.lang.NullPointerException
14:02:33,526 INFO [STDOUT] at org.eclipse.birt.report.engine.layout.util.HT
ML2Content.processForeignData(HTML2Content.java:139)
14:02:33,526 INFO [STDOUT] at org.eclipse.birt.report.engine.layout.util.HT
ML2Content.html2Content(HTML2Content.java:132)
14:02:33,526 INFO [STDOUT] at org.eclipse.birt.report.engine.layout.impl.Ab
stractLayoutEngine.handleHTMLContent(AbstractLayoutEngine.java:720)
14:02:33,526 INFO [STDOUT] at org.eclipse.birt.report.engine.layout.impl.Ab
stractLayoutEngine.startForeign(AbstractLayoutEngine.java:326)
14:02:33,526 INFO [STDOUT] at org.eclipse.birt.report.engine.layout.impl.Re
portLayoutEngine.startForeign(ReportLayoutEngine.java:156)
14:02:33,526 INFO [STDOUT] at org.eclipse.birt.report.engine.presentation.W
rappedEmitter.startForeign(WrappedEmitter.java:209)
14:02:33,526 INFO [STDOUT] at org.eclipse.birt.report.engine.presentation.L
ocalizedEmitter.startForeign(LocalizedEmitter.java:478)

I would like to have pdf file.
Thank you