SOYHU Posted August 26, 2009 Share Posted August 26, 2009 I use below statement to some field in my report.($V{SUM_NET_ORDER_BY_MO_GRP7}.compareTo(new BigDecimal("0")) > 0 )?($F{NET_ORDER_N_7}/ $V{SUM_NET_ORDER_BY_MO_GRP7}) :" "and when I run this report the system will be show " 32.00 " values that it should be " " because my $V{SUM_NET_ORDER_BY_MO_GRP7} is Zero.please help me correct this condition.Thank you,Soyhu. Link to comment Share on other sites More sharing options...
JSquire Posted August 28, 2009 Share Posted August 28, 2009 your statement looked correct to me so i checked with the java guru in our office .... he agrees it is correct so it's most likely that the value of $V{SUM_NET_ORDER_BY_MO_GRP7} is not actually zero.Can also try:($V{SUM_NET_ORDER_BY_MO_GRP7}.intValue() > 0 ? ($F{NET_ORDER_N_7}/ $V{SUM_NET_ORDER_BY_MO_GRP7}) : " " ) Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now