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


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> {
    public String toString() {...}
    public boolean equals(Object obj) {...}
   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: 1 day 20 hours ago

0 Answers:

No answers yet