Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » BIRT » BIRT reports using internal browser or SWT
BIRT reports using internal browser or SWT [message #521259] Tue, 16 March 2010 23:22 Go to next message
Miles Parker is currently offline Miles ParkerFriend
Messages: 1341
Registered: July 2009
Senior Member
Hi,

I'm wondering if the BIRT team have given thought to supporting internal browser for viewing reports and charts directly from User report designer tools? I may have missed something somewhere, but while I can say create a BIRT chart and display it within an Eclipse View or Editor part, and (though I haven't actually tried it) one can programmatically display a chart using the Viewer, users don't have a way to see a chart internally. I'd really like to be able to present charts and tables (cross tabs would be nice too Smile ) to users internally, and don't mind doing some coding to accomplish that, but I don't want to re-invent the wheel if there might be a way to do that using the existing BIRT UI.

Hope this query makes sense,

Miles
Re: BIRT reports using internal browser or SWT [message #521409 is a reply to message #521259] Wed, 17 March 2010 14:18 Go to previous messageGo to next message
Jason Weathersby is currently offline Jason WeathersbyFriend
Messages: 9167
Registered: July 2009
Senior Member

Miles,

BIRT already uses the SWT Browser widget when previewing reports. The
logic is in the BIRT viewer plugin and it deploys the viewer to the
jetty plugin. You can use the viewer plugin in any Eclipse application.
Is this what you are talking about?

Jason

Miles Parker wrote:
> Hi,
>
> I'm wondering if the BIRT team have given thought to supporting internal
> browser for viewing reports and charts directly from User report
> designer tools? I may have missed something somewhere, but while I can
> say create a BIRT chart and display it within an Eclipse View or Editor
> part, and (though I haven't actually tried it) one can programmatically
> display a chart using the Viewer, users don't have a way to see a chart
> internally. I'd really like to be able to present charts and tables
> (cross tabs would be nice too :) ) to users internally, and don't mind
> doing some coding to accomplish that, but I don't want to re-invent the
> wheel if there might be a way to do that using the existing BIRT UI.
>
> Hope this query makes sense,
>
> Miles
Re: BIRT reports using internal browser or SWT [message #521501 is a reply to message #521409] Wed, 17 March 2010 19:42 Go to previous messageGo to next message
Miles Parker is currently offline Miles ParkerFriend
Messages: 1341
Registered: July 2009
Senior Member

Hi Jason, please see below..

Jason Weathersby wrote on Wed, 17 March 2010 10:18
Miles,

BIRT already uses the SWT Browser widget when previewing reports. The
logic is in the BIRT viewer plugin and it deploys the viewer to the
jetty plugin. You can use the viewer plugin in any Eclipse application.
Is this what you are talking about?

Jason



There are a couple of related issues here..

1. The Eclipse preview doesn't use the SWT browser currently on OS X. See https://bugs.eclipse.org/bugs/show_bug.cgi?id=270189.

2. But assuming it does, I'm curious why the behavior is to deploy to jetty external instead of inside of Eclipse? Presumably there is an advantage / requirement for this.

3. I'm really happy to be able to use the viewer plugin from within Eclipse, but (I think?) that will only work for those situations where I'm actually handling the whole report production chain. Is there any simple way to plugin into this functionality for the user at report production time so that the user could then take any arbitrary report she has created and look at it internally?

thanks,

Miles

Re: BIRT reports using internal browser or SWT [message #521509 is a reply to message #521501] Wed, 17 March 2010 20:25 Go to previous messageGo to next message
Jason Weathersby is currently offline Jason WeathersbyFriend
Messages: 9167
Registered: July 2009
Senior Member

Miles,

I am not certain what the issue is on OS X. One number 2 and 3 can I
get some clarification on what you want to be able to do? Some of the
design of the Viewer plugin had to do with being able to deploy it as a
plugin or a J2EE app with little code change. So this might have played
into the choices that were made for it. When you say take an arbitrary
report created and look at it internally, can you give an example? Are
you talking about in an RCP application or J2EE?

Thanks

Jason

Miles Parker wrote:
>
> Hi Jason, please see below..
>
> Jason Weathersby wrote on Wed, 17 March 2010 10:18
>> Miles,
>>
>> BIRT already uses the SWT Browser widget when previewing reports. The
>> logic is in the BIRT viewer plugin and it deploys the viewer to the
>> jetty plugin. You can use the viewer plugin in any Eclipse
>> application. Is this what you are talking about?
>>
>> Jason
>
>
>
> There are a couple of related issues here..
>
> 1. The Eclipse preview doesn't use the SWT browser currently on OS X.
> See https://bugs.eclipse.org/bugs/show_bug.cgi?id=270189
>
> 2. But assuming it does, I'm curious why the behavior is to deploy to
> jetty external instead of inside of Eclipse? Presumably there is an
> advantage / requirement for this.
>
> 3. I'm really happy to be able to use the viewer plugin from within
> Eclipse, but (I think?) that will only work for those situations where
> I'm actually handling the whole report production chain. Is there any
> simple way to plugin into this functionality for the user at report
> production time so that the user could then take any arbitrary report
> she has created and look at it internally?
>
> thanks,
>
> Miles
>
Re: BIRT reports using internal browser or SWT [message #521510 is a reply to message #521509] Wed, 17 March 2010 20:28 Go to previous messageGo to next message
Jason Weathersby is currently offline Jason WeathersbyFriend
Messages: 9167
Registered: July 2009
Senior Member

One other note:
If you are using the Report Engine API you can call the report engine
from your app and put the output to your own Browser if you wish, with
out the need of Jetty or the Viewer plugin.

Jason

Jason Weathersby wrote:
> Miles,
>
> I am not certain what the issue is on OS X. One number 2 and 3 can I
> get some clarification on what you want to be able to do? Some of the
> design of the Viewer plugin had to do with being able to deploy it as a
> plugin or a J2EE app with little code change. So this might have played
> into the choices that were made for it. When you say take an arbitrary
> report created and look at it internally, can you give an example? Are
> you talking about in an RCP application or J2EE?
>
> Thanks
>
> Jason
>
> Miles Parker wrote:
>>
>> Hi Jason, please see below..
>>
>> Jason Weathersby wrote on Wed, 17 March 2010 10:18
>>> Miles,
>>>
>>> BIRT already uses the SWT Browser widget when previewing reports.
>>> The logic is in the BIRT viewer plugin and it deploys the viewer to
>>> the jetty plugin. You can use the viewer plugin in any Eclipse
>>> application. Is this what you are talking about?
>>>
>>> Jason
>>
>>
>>
>> There are a couple of related issues here..
>>
>> 1. The Eclipse preview doesn't use the SWT browser currently on OS X.
>> See https://bugs.eclipse.org/bugs/show_bug.cgi?id=270189
>>
>> 2. But assuming it does, I'm curious why the behavior is to deploy to
>> jetty external instead of inside of Eclipse? Presumably there is an
>> advantage / requirement for this.
>>
>> 3. I'm really happy to be able to use the viewer plugin from within
>> Eclipse, but (I think?) that will only work for those situations where
>> I'm actually handling the whole report production chain. Is there any
>> simple way to plugin into this functionality for the user at report
>> production time so that the user could then take any arbitrary report
>> she has created and look at it internally?
>>
>> thanks,
>>
>> Miles
>>
Re: BIRT reports using internal browser or SWT [message #521520 is a reply to message #521509] Wed, 17 March 2010 21:25 Go to previous messageGo to next message
Miles Parker is currently offline Miles ParkerFriend
Messages: 1341
Registered: July 2009
Senior Member
Jason Weathersby wrote on Wed, 17 March 2010 16:25
Miles,

I am not certain what the issue is on OS X. One number 2 and 3 can I
get some clarification on what you want to be able to do? Some of the
design of the Viewer plugin had to do with being able to deploy it as a
plugin or a J2EE app with little code change. So this might have played
into the choices that were made for it. When you say take an arbitrary
report created and look at it internally, can you give an example? Are
you talking about in an RCP application or J2EE?


I'm actually thinking any Platform app. (In my case it's for a set of EMF related features to be integrated with the Eclipse SDK.) IOTW, I (a modeling tools developer) would like to install BIRT, write a report, select a menu item and see that report appear in a view in my workbench. (Or as a page in the editor ala preview.) I'd assumed that the Viewer was designed in that kind of flexible way, which is what prompted me wondering "why doesn't BIRT support this OOTB?"

Jason Weathersby wrote on Wed, 17 March 2010 16:28
One other note:
If you are using the Report Engine API you can call the report engine
from your app and put the output to your own Browser if you wish, with
out the need of Jetty or the Viewer plugin.
>


Yeah, and I think you can even do it right to SWT, right? I've been doing this with the Chart API and it works great -- the Agent Modeling Framework AGF charts component is actually updating these charts in real-time (!) and performance is quite decent.
Re: BIRT reports using internal browser or SWT [message #521699 is a reply to message #521520] Thu, 18 March 2010 14:22 Go to previous messageGo to next message
Jason Weathersby is currently offline Jason WeathersbyFriend
Messages: 9167
Registered: July 2009
Senior Member

Miles,

Any chance you are going to be at EclipseCon next week? If so we can
discuss then. I am doing a class on Integrating BIRT that shows the
various ways the Engine(s) and Viewer can be deployed. I would like to
get some more details on what you would like to see.

Jason

Miles Parker wrote:
> Jason Weathersby wrote on Wed, 17 March 2010 16:25
>> Miles,
>>
>> I am not certain what the issue is on OS X. One number 2 and 3 can I
>> get some clarification on what you want to be able to do? Some of the
>> design of the Viewer plugin had to do with being able to deploy it as
>> a plugin or a J2EE app with little code change. So this might have
>> played into the choices that were made for it. When you say take an
>> arbitrary report created and look at it internally, can you give an
>> example? Are you talking about in an RCP application or J2EE?
>
>
> I'm actually thinking any Platform app. (In my case it's for a set of
> EMF related features to be integrated with the Eclipse SDK.) IOTW, I (a
> modeling tools developer) would like to install BIRT, write a report,
> select a menu item and see that report appear in a view in my workbench.
> (Or as a page in the editor ala preview.) I'd assumed that the Viewer
> was designed in that kind of flexible way, which is what prompted me
> wondering "why doesn't BIRT support this OOTB?"
>
> Jason Weathersby wrote on Wed, 17 March 2010 16:28
>> One other note:
>> If you are using the Report Engine API you can call the report engine
>> from your app and put the output to your own Browser if you wish, with
>> out the need of Jetty or the Viewer plugin.
>> >
>
>
> Yeah, and I think you can even do it right to SWT, right? I've been
> doing this with the Chart API and it works great -- the Agent Modeling
> Framework AGF charts component is actually updating these charts in
> real-time (!) and performance is quite decent.
Re: BIRT reports using internal browser or SWT [message #521799 is a reply to message #521699] Thu, 18 March 2010 18:33 Go to previous messageGo to next message
Miles Parker is currently offline Miles ParkerFriend
Messages: 1341
Registered: July 2009
Senior Member
Jason Weathersby wrote on Thu, 18 March 2010 10:22
Miles,

Any chance you are going to be at EclipseCon next week? If so we can
discuss then. I am doing a class on Integrating BIRT that shows the
various ways the Engine(s) and Viewer can be deployed. I would like to
get some more details on what you would like to see.

Jason



I'm not, unfortunately. I was supposed to give a talk but I couldn't make it. Sad I think what I should try to do is try my hand at getting the SWT viewer to display manually with a programmatically created report just so that I can get a feel for it. You class would be super useful for that!

My ultimate very broad goal is to simply make the BIRT user experience as seamlessly integrated with all of the other visualization stuff I'm doing as possible, which means that users are able to change a lot of stuff and even layout whole reports and charts, etc.. but then see the results directly within the Eclipse IDE.
Re: BIRT reports using internal browser or SWT [message #522003 is a reply to message #521799] Fri, 19 March 2010 10:30 Go to previous messageGo to next message
Jason Weathersby is currently offline Jason WeathersbyFriend
Messages: 9167
Registered: July 2009
Senior Member

In the source tree we do have a preview that just uses the engine api
and places the results on a SWT Browser. I also have one I am showing
next week. When I get back I will post to Birt Exchange. If you get
time it would be great if you could test in your app and send your thoughts.

Jason

Miles Parker wrote:
> Jason Weathersby wrote on Thu, 18 March 2010 10:22
>> Miles,
>>
>> Any chance you are going to be at EclipseCon next week? If so we can
>> discuss then. I am doing a class on Integrating BIRT that shows the
>> various ways the Engine(s) and Viewer can be deployed. I would like
>> to get some more details on what you would like to see.
>>
>> Jason
>
>
> I'm not, unfortunately. I was supposed to give a talk but I couldn't
> make it. :( I think what I should try to do is try my hand at getting
> the SWT viewer to display manually with a programmatically created
> report just so that I can get a feel for it. You class would be super
> useful for that!
>
> My ultimate very broad goal is to simply make the BIRT user experience
> as seamlessly integrated with all of the other visualization stuff I'm
> doing as possible, which means that users are able to change a lot of
> stuff and even layout whole reports and charts, etc.. but then see the
> results directly within the Eclipse IDE.
Re: BIRT reports using internal browser or SWT [message #522039 is a reply to message #522003] Fri, 19 March 2010 18:25 Go to previous messageGo to next message
Miles Parker is currently offline Miles ParkerFriend
Messages: 1341
Registered: July 2009
Senior Member
Jason Weathersby wrote on Fri, 19 March 2010 06:30
In the source tree we do have a preview that just uses the engine api
and places the results on a SWT Browser. I also have one I am showing
next week. When I get back I will post to Birt Exchange. If you get
time it would be great if you could test in your app and send your thoughts.



Cool, I can try it now. Can you just send me the location in source tree?
Re: BIRT reports using internal browser or SWT [message #522065 is a reply to message #522039] Fri, 19 March 2010 19:16 Go to previous messageGo to next message
Jason Weathersby is currently offline Jason WeathersbyFriend
Messages: 9167
Registered: July 2009
Senior Member

Miles,
In the source I believe this is the
org.eclipse.birt.report.designer.ui.preview.static_html project

A simple example is available on Birt Exchange

To look at an example download:
http://www.birt-exchange.org/devshare/deploying-birt-reports /1145-birt-2-5-integration-webinar/#description
And look at the rcpengine example.

Jason

Miles Parker wrote:
> Jason Weathersby wrote on Fri, 19 March 2010 06:30
>> In the source tree we do have a preview that just uses the engine api
>> and places the results on a SWT Browser. I also have one I am showing
>> next week. When I get back I will post to Birt Exchange. If you get
>> time it would be great if you could test in your app and send your
>> thoughts.
>
>
> Cool, I can try it now. Can you just send me the location in source tree?
Re: BIRT reports using internal browser or SWT [message #523084 is a reply to message #522065] Thu, 25 March 2010 00:29 Go to previous message
Miles Parker is currently offline Miles ParkerFriend
Messages: 1341
Registered: July 2009
Senior Member
Jason Weathersby wrote on Fri, 19 March 2010 15:16

To look at an example download:
http://www.birt-exchange.org/devshare/deploying-birt-reports /1145-birt-2-5-integration-webinar/#description
And look at the rcpengine example.



All three of the examples there are really great. Clear and easy to launch and test. It would be useful to have them referenced from the RCP API pages I think.
Previous Topic:Reporting from Access database
Next Topic:How to set chart title based on a current row
Goto Forum:
  


Current Time: Thu Sep 19 21:28:27 GMT 2024

Powered by FUDForum. Page generated in 0.04335 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top