|Urgent : Birt Viewer - To Jason [message #256503]
||Fri, 28 September 2007 08:48
Originally posted by: suryakant.in.ibm.com|
I am trying to generate report using Report engine APIs . Currently am
using scripted data source. When i am using the APIs, am adding the java
class to the application context before starting the platfrom and engine :
HashMap a_HashMap = m_oEngConfig.getAppContext();
IReportEngineFactory a_EngineFactory = (IReportEngineFactory)Platform
m_ReportEngine = a_EngineFactory.createReportEngine(m_oEngConfig);
and the report is working fine and am able to generate Report.
But now the situation demands the use of BIRT VIEWER .. so am passing the
report name as parameter to birt viewer which is deployed along with my
web application :
" http://localhost:9080/Birt/frameset?__report=ReqsListingRepo rt.rptdesign";
and it was giving error as i expected : BeanReport not defined.
How shd i add the following class to the context of BirtViewer
Also, is there any other way to let my classes accessed by the Birt Viewer
so that i can use scripted data source and have my java classes provide
the data to the report.
do i need to modify the Web.xml file of birtviewer or to place the class
files in the lib directory or to the scriptlib directory of BirtViewer.
Furthur we also have the option to set the system propery before starting
the platform, but i have no idea when and where to set that property in
EngineConstants.WEBAPP_CLASSPATH_KEY,"./myclasses/myjars.jar " );
Powered by FUDForum
. Page generated in 0.02020 seconds