Create elements that derive from rptlibrary using Designer API [message #990692] |
Thu, 13 December 2012 15:07  |
Eclipse User |
|
|
|
Hello,
We are testing BIRT Designer API to create some reports on the fly at runtime. So far it works but we seems can't find a way how to create an item in a report that derives from an item defined in rptlibrary. For example, I can add a label to a grid dynamically:
GridHandle grid = elementFactory.newGridItem("QR_VertGrid", 2, 5);
CellHandle g_cell = grid.getCell(0, 0);
LabelHandle label = elementFactory.newLabel(null);
label.setText("Test Label");
g_cell.getContent().add(label);
but I can't find a method that would allow me to create a label that would be a subclass of the one that is defined in my rptlibrary. Is that possible?
Thanks,
Aleksey
|
|
|
|
Re: Create elements that derive from rptlibrary using Designer API [message #991405 is a reply to message #990919] |
Tue, 18 December 2012 17:33  |
Eclipse User |
|
|
|
Sorry for the delay. You're trying to add a binding to a table using the DEAPI and then also create a data element within based on a data element from your library? Is the field used, in the dataSet you use for the table? Can you possibly attach a sample library and report and describe what you're wanting to see, based on those, so I can get a good visual? Thanks!
|
|
|
Powered by
FUDForum. Page generated in 0.04335 seconds