Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » BIRT » Create reportdesign with the Birt API in java
Create reportdesign with the Birt API in java [message #730785] Thu, 29 September 2011 03:28 Go to next message
Dude  is currently offline Dude
Messages: 20
Registered: August 2011
Junior Member
Hi there

I got a question is it possible to create a reportdesign in java with the help of the API.

I want to add a Headline field to each reportdesign and I don´t want to do this by my own. This should do a java programm for me.

Could anybody help me

Dude
Re: Create reportdesign with the Birt API in java [message #730943 is a reply to message #730785] Thu, 29 September 2011 11:09 Go to previous messageGo to next message
Jason Weathersby is currently offline Jason Weathersby
Messages: 9167
Registered: July 2009
Senior Member

Absolutely. Have a look at the design engine api:
http://eclipse.org/birt/phoenix/deploy/designEngineAPI.php


Jason

On 9/29/2011 3:28 AM, Dude wrote:
> Hi there
>
> I got a question is it possible to create a reportdesign in java with
> the help of the API.
>
> I want to add a Headline field to each reportdesign and I don´t want to
> do this by my own. This should do a java programm for me.
>
> Could anybody help me
>
> Dude
Re: Create reportdesign with the Birt API in java [message #733669 is a reply to message #730943] Wed, 05 October 2011 07:31 Go to previous messageGo to next message
Dude  is currently offline Dude
Messages: 20
Registered: August 2011
Junior Member
Thanks a lot

I still got one problem. This solution add everything at the bottom of the report.
Do you have any idea how I can add my stuff on a certain point.
I want to add it at the top of my report as a headline

Thanks
Dude
Re: Create reportdesign with the Birt API in java [message #733747 is a reply to message #733669] Wed, 05 October 2011 10:50 Go to previous messageGo to next message
Jason Weathersby is currently offline Jason Weathersby
Messages: 9167
Registered: July 2009
Senior Member

You should be able to insert into a position:

designHandle.getBody().add(content, newPos)

where content is the design handle for your headline label or data item.
newPos is just an integer. Try 0.

Jason

On 10/5/2011 7:31 AM, Dude wrote:
> Thanks a lot
>
> I still got one problem. This solution add everything at the bottom of
> the report.
> Do you have any idea how I can add my stuff on a certain point.
> I want to add it at the top of my report as a headline
>
> Thanks
> Dude
Re: Create reportdesign with the Birt API in java [message #733970 is a reply to message #733747] Thu, 06 October 2011 03:26 Go to previous messageGo to next message
Dude  is currently offline Dude
Messages: 20
Registered: August 2011
Junior Member
Thansk I already got it.
But I still got one question how can I add a dynamic Textfield?

Dude
Re: Create reportdesign with the Birt API in java [message #734092 is a reply to message #733970] Thu, 06 October 2011 12:07 Go to previous messageGo to next message
Jason Weathersby is currently offline Jason Weathersby
Messages: 9167
Registered: July 2009
Senior Member

Attached is a DE API example that shows adding various things to a
report including a text item.

Jason

On 10/6/2011 3:26 AM, Dude wrote:
> Thansk I already got it.
> But I still got one question how can I add a dynamic Textfield?
>
> Dude
Re: Create reportdesign with the Birt API in java [message #749373 is a reply to message #734092] Tue, 25 October 2011 03:19 Go to previous messageGo to next message
Dude  is currently offline Dude
Messages: 20
Registered: August 2011
Junior Member
Thanks

One more question Wink

Is it possible to edit the rptlibrary via the API??

Thanks for any answers

Dude
Re: Create reportdesign with the Birt API in java [message #750033 is a reply to message #749373] Tue, 25 October 2011 11:38 Go to previous message
Jason Weathersby is currently offline Jason Weathersby
Messages: 9167
Registered: July 2009
Senior Member

Yes the same way you edit a report.
Just open a library instead of a report:

LibraryHandle libhan =session.openLibrary("reports/test.rptlibrary");
DesignElementHandle mytable =
libhan.getElementFactory().newTableItem("mytable");
libhan.getComponents().add(mytable);
Jason

On 10/25/2011 3:19 AM, Dude wrote:
> Thanks
>
> One more question ;)
>
> Is it possible to edit the rptlibrary via the API??
>
> Thanks for any answers
>
> Dude
Previous Topic:View hyperlinks in weblogic server
Next Topic:Hive dataset : column sum
Goto Forum:
  


Current Time: Sat Aug 30 10:40:01 EDT 2014

Powered by FUDForum. Page generated in 0.02170 seconds