Jump to content
We've recently updated our Privacy Statement, available here ×

Could you correct me for this condition.


SOYHU

Recommended Posts

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

  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...