Discussions
Categories
Choose a Product
THRUST SERVICES
CORE APPS
CE PRODUCTS
...
Quick Links
POPULAR
HELPFUL TIPS
Groups
My Links
FOR SIGNED IN MEMBERS:
Back to website
Home
Designing Analytics Reports
Java code to create Report/Page variables in order to set dynamic footer
Migrateduser
<p>Hi,</p>
<p> </p>
<p>I am working on Page Variables in order to set a page footer. All I need is to write java code from birt api to set report variable and use its value in master page footer grid.</p>
<p> </p>
<p>VariableElementHandle var1 = new VariableElementHandle(module, element);</p>
<p> </p>
<p>I thought the above statement can be used for pageVaraible creation but I dont understand what module or element is to be given for a VariableElementHandle creation. I tried the following code but it has not worked as well.</p>
<p> </p>
<p>VariableElementHandle var1 = new VariableElementHandle(reportDesignHandle.getModule(), reportDesignHandle.getElement()); // throwing null pointer exception.</p>
<p> </p>
<p>I am attaching the sample rpt design file used for this process. Please help me in writing java code for this. And let me know if there is any other easy way of doing this job.</p>
<p> </p>
<p>Thanks in advance.</p>
<p>Ravi</p>
Find more posts tagged with
Comments
There are no comments yet