Skip to main content



      Home
Home » Archived » BIRT » Changing Chart Title using Design Engine
Changing Chart Title using Design Engine [message #208094] Thu, 21 December 2006 17:30 Go to next message
Eclipse UserFriend
Can someone please post/link to some sample code on how to read and change
the Title of a Chart via the Design Engine?

I can do almost everything else with the Design Engine but this bit of
information eludes me.

Thanks!

Todd Borax
Re: Changing Chart Title using Design Engine [message #208101 is a reply to message #208094] Thu, 21 December 2006 19:08 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: clf.clf.com

I have not tested this, but it looks like it should work...

DesignElementHandle elementHandle = designHandle.findElement("NewChart");

ExtendedItemHandle extendedHandle = (ExtendedItemHandle) elementHandle;




Chart chart = (Chart)
extendedHandle.getReportItem().getProperty("chart.instance");


chart.getTitle().setLabel("Your title");



"Todd Borax" <burntbiscuit_99@yahoo.com> wrote in message
news:9bc70e91bea32f6e56797175e94fc643$1@www.eclipse.org...
> Can someone please post/link to some sample code on how to read and change
> the Title of a Chart via the Design Engine?
>
> I can do almost everything else with the Design Engine but this bit of
> information eludes me.
>
> Thanks!
>
> Todd Borax
>
Re: Changing Chart Title using Design Engine [message #208197 is a reply to message #208101] Fri, 22 December 2006 10:47 Go to previous message
Eclipse UserFriend
This got me where I needed to go! Thank you very, very much!
Previous Topic:Viewer in Struts (with tiles)
Next Topic:Adding client side script to report?
Goto Forum:
  


Current Time: Wed Jul 16 22:57:28 EDT 2025

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

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

Back to the top