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
Developing Analytics Applications
Read Value of a NamedExpression
Migrateduser
<div>I use eclipse 4.4.1, windows 8.1, java 7 and birt 4.4.1.<br>
I want to make all in java.</div>
<div> </div>
<div>I have a report with a table.</div>
<div>In the table footer I add a Data. Then, in Data Binding, the Expression</div>
<div>Total.sum(row["Column Binding_5"]) with DataType float</div>
<div>In the "Property Editor - Data" I set the name to "Summe"</div>
<div> </div>
<div>I added a TableEventHandler to the table with the following Code</div>
<div> </div>
<div>
<pre class="_prettyXprint _lang-">
public void onRender(ITableInstance arg0, IReportContext arg1)
throws ScriptException {
float tmp = (float) arg0.getNamedExpressionValue("Summe");
if (tmp > 100.0) {
arg0.getStyle().setBackgroundColor("red");
}
}
</pre>
</div>
<div>My Question:</div>
<div>What is here wrong.</div>
<div>It happens nothing.</div>
Find more posts tagged with
Comments
There are no comments yet