Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » BIRT » Convert crosstable to chart with DE API
Convert crosstable to chart with DE API [message #896701] Thu, 19 July 2012 12:16 Go to next message
David Vinicz is currently offline David Vinicz
Messages: 13
Registered: July 2012
Junior Member
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 21:03 Go to previous messageGo to next message
Jason Weathersby is currently offline Jason Weathersby
Messages: 9167
Registered: July 2009
Senior Member

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 09:49 Go to previous message
David Vinicz is currently offline David Vinicz
Messages: 13
Registered: July 2012
Junior Member
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: Sun Oct 26 05:26:34 GMT 2014

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

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