Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
THRUST SERVICES & TOOLS
CLOUD EDITIONS
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Intelligence (Analytics)
Question to the birt report accessing procedure with eclipse birt
NewInBirt
Hello all,
i have got a question.
If i would like to access a BIRT report with eclipse BIRT, i have to run in eclipse a new "eclipse application". Inside of this eclipse instance the birt report works with my scripted data sources. Why I have to going this way?
If I start eclipse and go in the report design view and would like to access the BIRT report it doesn´t work. Does anybody know, why?
Thank you very much.
Bye
NewInBirt
Find more posts tagged with
Comments
mwilliams
Hi NewInBirt,
You don't see the report design at all in your workspace? Or, you're getting an error when you run it? Or something else? Let me know.
NewInBirt
Hi Michael,<br />
<br />
thank you for your reply.<br />
<br />
Well, if i would like to start it without a new eclipse application the jar-file (contains the java-classes for the scripting data source) I get exceptions that the classes don't exist. Therefore the jar-files don't exist in the classpath.<br />
<br />
I did following:<br />
<br />
Please look to this homepage:<br />
<a class='bbc_url' href='
http://openmrs.org/wiki/BIRT_ODA_Plugin_Developers_Guide'>BIRT
ODA Plugin Developers Guide - OpenMRS</a><br />
<br />
There is a instruction for running oda:<br />
<em class='bbc'> To run the ODA within your Eclipse development environment, simply right-click your org.eclipse.datatools.connectivity.oda.openmrs.ui project and choose Run As -> Eclipse Application. This will open a new Eclipse application where your changes to the BIRT ODA should be reflected when creating a data set or data source and running the report. </em><br />
<br />
My question is, what is the purpose of this approach?<br />
Why I also have to run a new eclipse application?<br />
<br />
Thx+Bye<br />
NewInBirt
NewInBirt
Has nowbody an answer?
Please BIRT-users could you say me how you test your report in eclipse birt?
If you use scripted data source do you start in eclipse a new eclipse application?
thx+bye
NewInBirt
CBR
Hi NewInBIRT,<br />
<br />
the link you posted describes how to develop a new datasource plugin for Eclipse BIRT. A datasource plugin (ODA plugin) is a eclipse plugin that tells BIRT how to communicate with your datasource. You should only begin to implement a ODA plugin if you already have deeper knowledge using the BIRT and eclipse framework<br />
<br />
A ScriptedDataSource is something different. I can be written using RhinoScript. You can just implement some EventHandler inside your report to make it work. You just have to run the report (using preview,...) and it works. For ScriptedDataSources have a look at <a class='bbc_url' href='
http://download.eclipse.org/birt/downloads/examples/scripting/scripteddatasource/scripteddatasource.html'>Created
by Camtasia Studio 3</a>.<br />
This screencast shows how to create a scripted data source.
NewInBirt
Hi CBR,<br />
<br />
I have a lot of experience with BIRT. I use oda data source and scripted data source as well in a big firm.<br />
<br />
The link, which I added should only show the technique to test report in eclipse BIRT, which I red on a page. But if it is the right way, I don´t know.<br />
<br />
My main question is independent of oda data source or scripted data source:<br />
<strong class='bbc'>How do you test a BIRT report (rptdesign) in eclipse? </strong><br />
<br />
CBR, my question is not how to develop a scripted data source or oda, I know it already. Please read my previous post and the titel of this thread.<br />
<br />
In my way I start in eclipse a new "eclipse application"? Only then the jars in eclipsepluginsorg.eclipse.birt.report.viewer_2.5.1.v20090821birtscriptlib are available.<br />
<br />
<strong class='bbc'>I don´t know if my approach to test reports in eclipse birt over a new "eclipse application" is right way.</strong><br />
<br />
I can not describe by problem better.<br />
<br />
Please help me, and say me how you test your birt-report.<br />
<br />
Thx+Bye<br />
NewInBIRT<br />
<br />
P.S.<br />
I should change my User-Name
, because I am working with BIRT since 1 year.
mwilliams
NewInBirt,
To access a report design in Eclipse BIRT to test it, you just have to save it to a report project that you have within your workspace. Then, in the report design view, you'd just open the report design from the navigator and preview the report. Is this what you're asking?
NewInBirt
Hi Michael,
thank you again.
That was the answer to my question. Now I know, that my approach to test the report is not the right way.
In my case I have to run a new eclipse-application (in eclipse menu run --> new eclipse-application). Only then the report will be shown.
Michael, if I follow your instructions to test the birt-report , I will got an exception that the jars in that folder
eclipsepluginsorg.eclipse.birt.report.viewer_2.5.1.v20090821birtscriptlib aren't available.
Do you have an answer why there are problems with the jars for the scripting data source?
It isn't easy to find out my problem for you, is it?
I can add an example report for demonstration.
Thank you Michael.
Bye
NewInBirt
mwilliams
NewInBirt,
In the designer, I believe you just need to have the jar file in your workspace in the same place as the report. Then, just include it as a resource in the resources tab in the property editor. Have you done all of this? Providing a simple example that I can run of what you done is always helpful for sure.