How can i use the interactively filtering feature in jasperreport server with own java classes?

0

I have created my own Java Class (type) to have life just a little easier when displaying money (euro)-values in jasper reports.

    public class Euro extends Number implements Comparable<Euro> {
 
    @Override
    public String toString() {...}
 
    @Override
    public boolean equals(Object obj) {...}
 
   @Override
   public int hashCode() {...}
 
}

The data is displayed in table and everything works fine. Even sorting the whole column works great. But, if i want to filter the column like "is greater than" - no data is displayed after filtering.

When i changed the type of the data to BigDecimal sorting works.

What i'm doing wrong? Or can anyone tell me what exaclty jasper do when it tries to filter data?

dirk.diebel's picture
Joined: Mar 28 2017 - 11:38pm
Last seen: 5 days 14 hours ago

0 Answers:

No answers yet
Feedback