Options for this custom field in the dropdown list are filtered correctly by the paramWhere attribute, but I failed to find a proper way to sort this list.
Is there an easy way to sort options for my custom filter dropdown list, say, by the ce.name property?
Worked for me on this test project as well.
I guess it’s because CUBA of the latest version doesn’t put any (e.deleteTs is null) part in the middle of the where clause.
You can easily confirm that by putting something like “{E}.email is not null a order by {E}.name desc” in your paramWhere attribute.
I bet that the resulting JPQL-query in the error message you’d get in the browse screen will look like that:
select e from sales$Customer e where e.email is not null a order by {E}.name desc
without any “e.deleteTs is null” part.
But that doesn’t really work for my project, since I can’t just swich to a newer CUBA.