Go Back   Forum - BIRT Exchange > Designing BIRT Reports Forums > Eclipse BIRT Newsgroup Mirror

 
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 02-06-2010, 05:11 PM
Torge Kummerow
 
Posts: n/a
Default RCP Integration with Java Classes

Hello everyone,

to be honest, I am a little bit confused and need a statement.


My situation:

I do import data from Excel sheets into a Java class hierarchy. No
database. And I have a RCP GUI whose sole purpose is to display that
data. There is where I taught BIRT Reports could come into play.


So my question:

Can I use BIRT to display the information encapsulated in my Java
objects, without the need to install a Tomcat or a different Server?


Hope someone can answer that,
Torge Kummerow
  #2 (permalink)  
Old 02-09-2010, 08:00 AM
Jason Weathersby
 
Posts: n/a
Default Re: RCP Integration with Java Classes

Torge,

BIRT can be used for this.
I just did a webinar showing RCP integration:
http://www.birt-exchange.org/devshar...r/#description
Slides and example apps are available at the link above. In your case
you want use the Report Engine in the RCP app. Take a look at the
example and find this one:
org.eclipse.birt.examples.rcpengine

To push your objects into the report engine, add them to BIRT's app
context like:

task.getAppContext().put("myobject", myinstance);

Then within BIRT script you can call your objects like:

myobject.getMethod(); or
reportContext.getAppContext("myobject").myMethod();

Jason

Torge Kummerow wrote:
> Hello everyone,
>
> to be honest, I am a little bit confused and need a statement.
>
>
> My situation:
>
> I do import data from Excel sheets into a Java class hierarchy. No
> database. And I have a RCP GUI whose sole purpose is to display that
> data. There is where I taught BIRT Reports could come into play.
>
>
> So my question:
>
> Can I use BIRT to display the information encapsulated in my Java
> objects, without the need to install a Tomcat or a different Server?
>
>
> Hope someone can answer that,
> Torge Kummerow
  #3 (permalink)  
Old 02-10-2010, 12:40 PM
Torge Kummerow
 
Posts: n/a
Default Re: RCP Integration with Java Classes

Thanks a lot Jason,

this sounds exactly like what I was hoping for. I'll give it a try. I
was already starting to use on the fly generated CSV files to achieve my
goal.

Torge

Am 09.02.2010 16:56, schrieb Jason Weathersby:
> Torge,
>
> BIRT can be used for this.
> I just did a webinar showing RCP integration:
> http://www.birt-exchange.org/devshar...r/#description
>
> Slides and example apps are available at the link above. In your case
> you want use the Report Engine in the RCP app. Take a look at the
> example and find this one:
> org.eclipse.birt.examples.rcpengine
>
> To push your objects into the report engine, add them to BIRT's app
> context like:
>
> task.getAppContext().put("myobject", myinstance);
>
> Then within BIRT script you can call your objects like:
>
> myobject.getMethod(); or
> reportContext.getAppContext("myobject").myMethod();
>
> Jason
>
> Torge Kummerow wrote:
>> Hello everyone,
>>
>> to be honest, I am a little bit confused and need a statement.
>>
>>
>> My situation:
>>
>> I do import data from Excel sheets into a Java class hierarchy. No
>> database. And I have a RCP GUI whose sole purpose is to display that
>> data. There is where I taught BIRT Reports could come into play.
>>
>>
>> So my question:
>>
>> Can I use BIRT to display the information encapsulated in my Java
>> objects, without the need to install a Tomcat or a different Server?
>>
>>
>> Hope someone can answer that,
>> Torge Kummerow
 


Thread Tools
Display Modes




All times are GMT -7. The time now is 11:32 AM.
Powered by vBulletin Copyright © 2000-2010 Jelsoft Enterprises Limited.


Content Relevant URLs by vBSEO 3.1.0