[jboss-user] [JBoss Tools] - SEAM BIRT Integration Scripted DS report works when embedded, but not when designType=run or frameset

pretorga do-not-reply at jboss.com
Mon Aug 1 15:28:59 EDT 2011


pretorga [http://community.jboss.org/people/pretorga] created the discussion

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

To view the discussion, visit: http://community.jboss.org/message/618671#618671

--------------------------------------------------------------
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 http://java.sun.com/jsf/facelets"
xmlns:s=" http://jboss.com/products/seam/taglib http://jboss.com/products/seam/taglib"
xmlns:b=" http://jboss.com/products/seam/birt 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 http://java.sun.com/jsf/facelets"
xmlns:s=" http://jboss.com/products/seam/taglib http://jboss.com/products/seam/taglib"
xmlns:b=" http://jboss.com/products/seam/birt 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 http://community.jboss.org/message/326971#326971

Any ideas?
--------------------------------------------------------------

Reply to this message by going to Community
[http://community.jboss.org/message/618671#618671]

Start a new discussion in JBoss Tools at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2128]

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20110801/b152e338/attachment.html 


More information about the jboss-user mailing list