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)
Creating table programmatically
devp
Hi<br />
Is it possible to alter a table created dynamically in the 'onFetch' event of a dataset?<br />
<br />
I have a table which is created in the 'initialize' method at the 'Generation' phase. I tried changing the header text during the 'onFetch' event of the dataset but it does not show the updated value. Here is the code snippet<br />
<pre class='_prettyXprint _lang-auto _linenums:0'>
headerCellHandle = (CellHandle) headerHandle.getCells().get(rownum.intValue());
label = factory.newLabel("L"+rownum.intValue());
label.setText(row.getColumnValue(5).toString());
headerCellHandle.clearContents(0);
headerCellHandle.getContent().add(label);
</pre>
<br />
Is it possible to do it during the 'onFetch' event or it needs to be done during the 'initialize' event or I am doing something wrong?<br />
<br />
Thanks <br />
devp
Find more posts tagged with
Comments
mwilliams
Hi devp,<br />
<br />
I don't know that the onFetch method is where you want to do this change. Here's a link to a report design from the devShare that works with changing a report dynamically using the DEAPI. It should help you figure out where you should make your changes.<br />
<br />
<a class='bbc_url' href='
http://www.birt-exchange.com/devshare/designing-birt-reports/117-dynamic-content-creation-in-birt/'>Dynamic
Content Creation in BIRT - Designs & Code - BIRT Exchange</a><br />
<br />
Hope this helps.