2 Replies Latest reply on Aug 2, 2011 6:57 PM by pretorga

    SEAM BIRT Integration Scripted DS report works when embedded, but not when designType=run or frameset

    pretorga Newbie

      Hi

       

      I have a BIRT report that uses a Scripted DataSource in a SEAM web application.

       

      When I embed my report like this:

       

      <ui:define name="body">

                      <rich:panel>

                              <b:birt designType="embed"

                                      designName="/report/register_entries.rptdesign" embeddable="true">

                                      <b:param name="reportTitle" value="Register Entries" />

                              </b:birt>

                      </rich:panel>

              </ui:define>

       

      ... the report runs fine. Report.initialize() as well as open() and fetch() methods are called.

       

      When I try to use the frameset viewer, or try to use designType=run to create pdf/xls like this:

       

      <b:birt xmlns:ui="http://java.sun.com/jsf/facelets"

      xmlns:s="http://jboss.com/products/seam/taglib"

      xmlns:b="http://jboss.com/products/seam/birt"

      designType="frameset"

      designName="/report/register_entries.rptdesign"

      title="Register Entries Frameset Report">

      </b:birt>

       

      and

       

      <b:birt xmlns:ui="http://java.sun.com/jsf/facelets"

      xmlns:s="http://jboss.com/products/seam/taglib"

      xmlns:b="http://jboss.com/products/seam/birt"

      designType="run"

      format="pdf"

      designName="/report/register_entries.rptdesign"

      title="Register Entries PDF Report"/>

       

      I get my data from a SEAM component in the open() of the Scripted DataSet as follows:

       

      var reportDataProvider = Packages.org.jboss.seam.Component.getInstance("reportDataProvider", true)'

       

      When using designType frameset or run, reportDataProvider is null. I'm not entirely sure why.

       

      My problem seems to be the inverse of this http://community.jboss.org/message/326971#326971

       

      Any ideas?