Why don't display 0 in aggregate information [message #989875] |
Sun, 09 December 2012 01:53 |
Hunter Lee Messages: 10 Registered: December 2012 |
Junior Member |
|
|
Hi,
The version is 4.2.1. I use it in a windows7 32bit OS.
In a sales report every week, I group date by region to display sales subtotals by region. In Aggregation Builder, i use the SUM function to compute the sum. If there is no records in a region, then, it will not display 0, but nothing(a blank table cell). So, in script, I select the 'onCreate', then entry script statement as below,
if(this.getValue()==null){
this.setDisplayValue("0");
}
It will display 0 in report designer, but display nothing(a blank table cell) in IE or Chrome when i deployed the report in a Tomcat.
I greatly appreciate all help.
Thanks.
[Updated on: Sun, 09 December 2012 01:54] Report message to a moderator
|
|
|
|
|
Re: Why don't display 0 in aggregate information [message #990076 is a reply to message #990010] |
Mon, 10 December 2012 18:12 |
|
Instead of using script, use the mapping option to set your condition. Click on your data element and go to the map section in the property editor. Make a condition for "value of this data item" equal to null -> 0. That should do it.
Michael
Developer Evangelist, Silanis
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03091 seconds