Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » BIRT » Update partial report in BIRT
Update partial report in BIRT [message #367095] Wed, 18 February 2009 09:49 Go to next message
Roger Schildmeijer is currently offline Roger SchildmeijerFriend
Messages: 5
Registered: July 2009
Junior Member
I have two diagrams in my BIRT report. One pie chart and one bar chart
type. The bar displays detailed information about the recently selected
pie (from the first pie chart).

(Pax helped me with this interactive feature.)

The following script snippet (from the value series -> interactivity ->
invoke script) enables this interactive functionality, where my report
parameter is called "selectedCourseName"

var newURL = new String(location.href);
newURL = newURL.replace(/selectedCourseName=[\w +]+/,
"selectedCourseName=" + categoryData);
location.replace(newURL);

The problem is that the entire report is repainted/regenerated everytime
the user clicks on a pie piece. What I want to accomplish (probably with
Ajax) is to only "redraw" the second (bar chart).
Re: Update partial report in BIRT [message #367103 is a reply to message #367095] Wed, 18 February 2009 15:52 Go to previous message
Roger Schildmeijer is currently offline Roger SchildmeijerFriend
Messages: 5
Registered: July 2009
Junior Member
What I've figured out so far: (mostly basic ajax scripting)

To be able to use ajax, the .png picture (the diagram) generated by the
birt runtime must be inside a div that contains an "id".

So the first step is to figure out how to set an id to the div tag.
Previous Topic:Chart legend Interactivity - BIRT 2.3.1
Next Topic:reportRunner and stream
Goto Forum:
  


Current Time: Mon Sep 23 08:07:09 GMT 2024

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

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

Back to the top