Skip to main content



      Home
Home » Archived » BIRT » Convert crosstable to chart with DE API
Convert crosstable to chart with DE API [message #896701] Thu, 19 July 2012 08:16 Go to next message
Eclipse UserFriend
Hi,

I'd like to convert a crosstable to a chart (or charts). I know there is a "Show as chart" function in the editor, but I'd like to do this via the DE API because i'm creating the crosstables also with the DE. I didn't find any easy solutions for that yet ( as easy as one click in the editor ). Is there any out of the box solution for this also in the DE API, or do I have to create my own?

Thank you for your replies!

David
Re: Convert crosstable to chart with DE API [message #896802 is a reply to message #896701] Thu, 19 July 2012 17:03 Go to previous messageGo to next message
Eclipse UserFriend
David

I have an example that calls the de api in the before factory and sets
the index based on a parameter that lets the user decide to show as a
chart or crosstab.

th = reportContext.getDesignHandle().findElement("mycrosstab");
mvh = th.getProperty("multiViews");

if( params["ShowAs"].value == "chartview" ){
mvh.setProperty("index", "0" );
}else{
mvh.setProperty("index", "-1" );
}

See attached


Jason

On 7/19/2012 8:16 AM, David Vinicz wrote:
> Hi,
>
> I'd like to convert a crosstable to a chart (or charts). I know there is
> a "Show as chart" function in the editor, but I'd like to do this via
> the DE API because i'm creating the crosstables also with the DE. I
> didn't find any easy solutions for that yet ( as easy as one click in
> the editor ). Is there any out of the box solution for this also in the
> DE API, or do I have to create my own?
>
> Thank you for your replies!
>
> David
Re: Convert crosstable to chart with DE API [message #897494 is a reply to message #896802] Tue, 24 July 2012 05:49 Go to previous message
Eclipse UserFriend
Thanks for the reply I will try this out,

David
Previous Topic:Creating BIRT report with Tags.
Next Topic:upgrate birt 2.3.2 to birt 4.2
Goto Forum:
  


Current Time: Tue Jul 08 09:09:50 EDT 2025

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

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

Back to the top