How print data starting of a given value BigDecimal?

I`m doing a report and I have to print all of the data starting from a given value, passed as parameter. For example, I want print a relation of all of products that the availability is at least x, that is, I will print the products that have stock f x and x+. My related parameter and field are BigDecimal, I didn`t get trying this way: 

    ($P{cenaOd} != null ?$F{lacznyStan}.equals($P{cenaOd}): true )

It appears the following error: java.lang.ClassCastException: java.lang.Integer cannot be cast to java.math.BigDecimal

Can someone help me?

maria.pereira's picture
Joined: Sep 6 2016 - 1:50am
Last seen: 6 years 4 months ago

1 Answer:

Seems like either cenaOd or lacznyStan is an Integer and not a BigDecimal.

hozawa's picture
Joined: Apr 24 2010 - 4:31pm
Last seen: 3 years 8 months ago