Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
THRUST SERVICES & TOOLS
CLOUD EDITIONS
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Intelligence (Analytics)
DEAPI: Adding second row to table header
spulci
Hallo,<br />
<br />
I need to add two lines to a table header using DE API. I've created a table and I've got a design handle to the header (first line is automatically created with table instantiation:<br />
<br />
<pre class='_prettyXprint _lang-auto _linenums:0'>
TableHandle table = designFactory.newTableItem( "DynamicTable", mySize);
RowHandle tableheader = (RowHandle) table.getHeader( ).get( 0 ); //first line
//code for adding a second line needed
</pre>
<br />
I tried to type something like:<br />
<br />
<pre class='_prettyXprint _lang-auto _linenums:0'>
table.getHeader().add(designFactory.newElement("row", "line1"), 1);
</pre>
<br />
but I can't understand the first parameter of "add" method.<br />
<br />
Thanks a lot<br />
<br />
Simon
Find more posts tagged with
Comments
mwilliams
Hi Simon,
I've never tried to add a header row. It may be similar to adding a detail row. You can see how to do that here:
http://www.birt-exchange.org/org/forum/index.php/topic/16624-how-to-add-a-detail-row-to-tablehandle/