Skip to main content



      Home
Home » Archived » BIRT » Programmatically adding Groups to a report design
Programmatically adding Groups to a report design [message #57635] Wed, 13 July 2005 10:38 Go to next message
Eclipse UserFriend
Hi folks,

I am creating a report programmatically and have so far successfully
managed to construct and execute a simple rptdesign file produce a report.

In my rptdesign I have managed to create a table with relevant
header/detail/footer information using the
org.eclipse.birt.report.model.api API's available.

The trouble I am now having is in trying to add a group to my
tablehandle. The method for doing so seems to differ from simply
populating a detail row as it is not added to the table by default.

I have looked at the birt website, but the example provided doesn't deal
with tables.

If anyone can help me in any way, it would be greatly appreciated.

Thanks

Nathan
Re: Programmatically adding Groups to a report design [message #57802 is a reply to message #57635] Wed, 13 July 2005 14:37 Go to previous messageGo to next message
Eclipse UserFriend
I add the table group to table,..:

TableHandle tableHandle = factory.newTableItem(....);

TableGroupHandle tableGroup = factory.newTableGroup();
tableGroup.setInterval("none");
tableGroup.setSortDirection("asc");
tableGroup.setKeyExpr("row[\"CONECOIN\"]");

tableHandle.addElement(tableGroup, TableHandle.GROUP_SLOT);

I hope this fullfill your needs.

OK

"Nathan McKeown" <nathan.mckeown@scapatech.com> escribi
Re: Programmatically adding Groups to a report design [message #58213 is a reply to message #57802] Thu, 14 July 2005 06:14 Go to previous message
Eclipse UserFriend
That's great!

Thanks for your help.

Nathan

Andres Gomez wrote:
> I add the table group to table,..:
>
> TableHandle tableHandle = factory.newTableItem(....);
>
> TableGroupHandle tableGroup = factory.newTableGroup();
> tableGroup.setInterval("none");
> tableGroup.setSortDirection("asc");
> tableGroup.setKeyExpr("row[\"CONECOIN\"]");
>
> tableHandle.addElement(tableGroup, TableHandle.GROUP_SLOT);
>
> I hope this fullfill your needs.
>
> OK
>
> "Nathan McKeown" <nathan.mckeown@scapatech.com> escribió en el mensaje
> news:db38ns$dua$1@news.eclipse.org...
>
>>Hi folks,
>>
>>I am creating a report programmatically and have so far successfully
>>managed to construct and execute a simple rptdesign file produce a report.
>>
>>In my rptdesign I have managed to create a table with relevant
>>header/detail/footer information using the
>>org.eclipse.birt.report.model.api API's available.
>>
>>The trouble I am now having is in trying to add a group to my tablehandle.
>>The method for doing so seems to differ from simply populating a detail
>>row as it is not added to the table by default.
>>
>>I have looked at the birt website, but the example provided doesn't deal
>>with tables.
>>
>>If anyone can help me in any way, it would be greatly appreciated.
>>
>>Thanks
>>
>>Nathan
>
>
>
Previous Topic:Linking chart by parameter causes error when a NULL param value is reached
Next Topic:Get Session Context through scriptin
Goto Forum:
  


Current Time: Tue Apr 29 01:33:09 EDT 2025

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

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

Back to the top