Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » BIRT » Dynamic hyperlink on bar chart series
Dynamic hyperlink on bar chart series [message #548687] Thu, 22 July 2010 16:16 Go to next message
Eclipse UserFriend
Originally posted by: remkus.wideopenwest.com

I have a report that contains a bar chart. The bar chart series will
have a drill-through to another report.

I'd like to be able to change the report that the interactivity
drills-through based on a report parameter, but I'm a bit confused on
how to access/change the drill-through on a chart series in a script.

Can it be done? Any suggestions?

Thanks
Re: Dynamic hyperlink on bar chart series [message #548721 is a reply to message #548687] Thu, 22 July 2010 18:03 Go to previous message
Jason Weathersby is currently offline Jason WeathersbyFriend
Messages: 9167
Registered: July 2009
Senior Member

Dave,

For chart drill through (Which is stored in the design differently than
a normal drill through) you could do something like:

function beforeDrawSeries( series, isr, icsc )
{

triglen = series.getTriggers().size();
if( triglen >0 ){
mytarget =
series.getTriggers().get(0).getAction().getValue().getURLVal ues(
).get(0).getBaseUrl();
newtarget = mytarget.replace("reporttarget1.rptdesign",
"reporttarget2.rptdesign");

series.getTriggers().get(0).getAction().getValue().getURLVal ues(
).get(0).setBaseUrl(newtarget);

}
}


Jason

On 7/22/2010 12:16 PM, Dave Remkus wrote:
> I have a report that contains a bar chart. The bar chart series will
> have a drill-through to another report.
>
> I'd like to be able to change the report that the interactivity
> drills-through based on a report parameter, but I'm a bit confused on
> how to access/change the drill-through on a chart series in a script.
>
> Can it be done? Any suggestions?
>
> Thanks
Previous Topic:Using SVG in a PDF report
Next Topic:Actuate 8 Report Errors
Goto Forum:
  


Current Time: Fri Nov 28 03:34:48 GMT 2014

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

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