Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » BIRT » Updating Chart using a button click(Updating Chart using a button click)
Updating Chart using a button click [message #630116] Thu, 30 September 2010 16:47 Go to next message
No real name is currently offline No real nameFriend
Messages: 23
Registered: August 2010
Junior Member
Is it possible to update a chart from a button click? If so is there any sample code regarding this?

Thanks
Re: Updating Chart using a button click [message #630126 is a reply to message #630116] Thu, 30 September 2010 17:08 Go to previous messageGo to next message
Jason Weathersby is currently offline Jason WeathersbyFriend
Messages: 9167
Registered: July 2009
Senior Member

Can you give some more detail on how you are running the chart. In the
WebViewer? API? When you want it to update do you just want to re-run
the report and get the new data?

Jason

On 9/30/2010 12:47 PM, asadanandan@axiomainc.com wrote:
> Is it possible to update a chart from a button click? If so is there any
> sample code regarding this?
>
> Thanks
Re: Updating Chart using a button click [message #630131 is a reply to message #630126] Thu, 30 September 2010 17:35 Go to previous messageGo to next message
No real name is currently offline No real nameFriend
Messages: 23
Registered: August 2010
Junior Member
I am running via the API on an SWT application. I understand that the chart can be refreshed using a callback implementation by adding triggers. But is it possible to do this externally eg: draw a trendline via an SWT button action. If so how do I link the button action in order to refresh the chart after I draw the line?

Re: Updating Chart using a button click [message #630145 is a reply to message #630131] Thu, 30 September 2010 18:46 Go to previous messageGo to next message
Jason Weathersby is currently offline Jason WeathersbyFriend
Messages: 9167
Registered: July 2009
Senior Member

If you checkout the org.eclipse.birt.chart.examples plugin it contains
several SWT example where an update button is used. Look at
SwtChartViewerSelector.java
SwtLiveChartViewer.java
SwtInteractivityViewer.java

Jason



On 9/30/2010 1:35 PM, asadanandan@axiomainc.com wrote:
> I am running via the API on an SWT application. I understand that the
> chart can be refreshed using a callback implementation by adding
> triggers. But is it possible to do this externally eg: draw a trendline
> via an SWT button action. If so how do I link the button action in order
> to refresh the chart after I draw the line?
>
>
Re: Updating Chart using a button click [message #630146 is a reply to message #630145] Thu, 30 September 2010 19:02 Go to previous message
No real name is currently offline No real nameFriend
Messages: 23
Registered: August 2010
Junior Member
Thanks Jason!
Previous Topic:How to use caching in BIRT Jsp Page
Next Topic:Error accesing java classes from a scripted dataset
Goto Forum:
  


Current Time: Thu Apr 25 19:57:31 GMT 2024

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

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

Back to the top