| 
| Programmatically adding Groups to a report design [message #57635] | Wed, 13 July 2005 10:38  |  | 
| Eclipse User  |  |  |  |  | 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 #58213 is a reply to message #57802] | Thu, 14 July 2005 06:14  |  | 
| Eclipse User  |  |  |  |  | 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
 >
 >
 >
 |  |  |  | 
Powered by 
FUDForum. Page generated in 0.25374 seconds