Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Make Table filter case-insensitive

Hi,

I am using the TableFilter.java file to filter the enteries in the table. But the problem is, the results are case sensitive. So i tried adding the following lines of code

<b>if(o1 instanceOf String && o2 instanceOf String){

String s1 = o1.toString();

String s2 = o2.toString();

return s1.compareToIgnoreCase(s2);

}</b>

just before the return statement in

private static final Comparator DEFAULT = new Comparator()

But still the filter is case sensitive.

Can you help me make it case in sensitive

Regards,

Prathamesh

Former Member

Helpful Answer

by
Not what you were looking for? View more on this topic or Ask a question