Skip to main content



      Home
Home » Archived » BIRT » Page breaks using the API
Page breaks using the API [message #250265] Sun, 29 July 2007 14:50 Go to next message
Eclipse UserFriend
I want to add a page break that is always_after to a table. While this
is easy enough in the Designer I am trying to do this using the API.

Do I use styles? If so how, I always get a null from table.getStyle. I
f I create a new style from the element factory when I try
table.setStyle(newStyle) I get "The style "NewStyle" used by
Table("table") is not found"?

Any suggestions on how to do something as simple as add a page break to
a report item using the API?

Thanks,
Lester
Re: Page breaks using the API [message #250423 is a reply to message #250265] Mon, 30 July 2007 12:46 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: jasonweathersby.alltel.net

Lester,

This is a property of the table and you should be able to do this using
the TableHandle like:

th.setPropertyBinding("pageBreakAfter", "always");

Jason

Lester Mundt wrote:
> I want to add a page break that is always_after to a table. While this
> is easy enough in the Designer I am trying to do this using the API.
>
> Do I use styles? If so how, I always get a null from table.getStyle. I
> f I create a new style from the element factory when I try
> table.setStyle(newStyle) I get "The style "NewStyle" used by
> Table("table") is not found"?
>
> Any suggestions on how to do something as simple as add a page break to
> a report item using the API?
>
> Thanks,
> Lester
Re: Page breaks using the API [message #250754 is a reply to message #250423] Wed, 01 August 2007 11:04 Go to previous messageGo to next message
Eclipse UserFriend
Thanks Jason,

This worked quite well. One last question though were is the best place
to find all the properties and the possible values for a given report item.

I realize for a single item I could use getProperties to see the
available properties but it won't provide the potential values.

Is there some documentation somewhere?

Thanks,
Lester


Jason Weathersby wrote:
> Lester,
>
> This is a property of the table and you should be able to do this using
> the TableHandle like:
>
> th.setPropertyBinding("pageBreakAfter", "always");
>
> Jason
>
> Lester Mundt wrote:
>> I want to add a page break that is always_after to a table. While
>> this is easy enough in the Designer I am trying to do this using the API.
>>
>> Do I use styles? If so how, I always get a null from table.getStyle.
>> I f I create a new style from the element factory when I try
>> table.setStyle(newStyle) I get "The style "NewStyle" used by
>> Table("table") is not found"?
>>
>> Any suggestions on how to do something as simple as add a page break
>> to a report item using the API?
>>
>> Thanks,
>> Lester
Re: Page breaks using the API [message #250879 is a reply to message #250754] Wed, 01 August 2007 23:50 Go to previous message
Eclipse UserFriend
Originally posted by: jasonweathersby.alltel.net

Lester,

Look at the ROM

http://www.eclipse.org/birt/phoenix/ref/rom/elements/Table.h tml

Jason

Lester Mundt wrote:
> Thanks Jason,
>
> This worked quite well. One last question though were is the best place
> to find all the properties and the possible values for a given report item.
>
> I realize for a single item I could use getProperties to see the
> available properties but it won't provide the potential values.
>
> Is there some documentation somewhere?
>
> Thanks,
> Lester
>
>
> Jason Weathersby wrote:
>> Lester,
>>
>> This is a property of the table and you should be able to do this
>> using the TableHandle like:
>>
>> th.setPropertyBinding("pageBreakAfter", "always");
>> Jason
>>
>> Lester Mundt wrote:
>>> I want to add a page break that is always_after to a table. While
>>> this is easy enough in the Designer I am trying to do this using the
>>> API.
>>>
>>> Do I use styles? If so how, I always get a null from
>>> table.getStyle. I f I create a new style from the element factory
>>> when I try table.setStyle(newStyle) I get "The style "NewStyle" used
>>> by Table("table") is not found"?
>>>
>>> Any suggestions on how to do something as simple as add a page break
>>> to a report item using the API?
>>>
>>> Thanks,
>>> Lester
Previous Topic:checkbox with data values in BIRT Report output
Next Topic:Simple Parameter Question
Goto Forum:
  


Current Time: Wed May 14 09:58:39 EDT 2025

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

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

Back to the top