Hitachi Vantara Pentaho Community Forums
Results 1 to 3 of 3

Thread: How to pass parameter to BIRT report?

  1. #1
    Join Date
    Jun 2006
    Posts
    4

    Default How to pass parameter to BIRT report?

    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

  2. #2
    Join Date
    Nov 1999
    Posts
    579

    Default Re:How to pass parameter to BIRT report?

    Please see our sample solution which has a parameterized BIRT report example.

  3. #3
    Join Date
    Jun 2006
    Posts
    4

    Default Re:How to pass parameter to BIRT report?

    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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Privacy Policy | Legal Notices | Safe Harbor Privacy Policy

Copyright © 2005 - 2019 Hitachi Vantara Corporation. All Rights Reserved.