I have an entity that is linked to a user (the assignee) I now want to specify a custom filter with a parameter on users. The options for the parameter should be limited based on the roles.
Hi,
I suppose what you need is not currently possible with generic Filter component without overriding its logic and writing custom code. There’s just not enough extension points in the Filter.
Your options are:
Don’t use generic Filter component. Write simple filter by putting several components on a browser screen and fully controlling them (like in Entity Log screen).
Step to the dark side by overriding FilterDelegateImpl, investigating how it works and hacking there to customize behavior.
Look here how to override the bean: About filter componet access restrict - #3 от пользователя gorbunkov - CUBA.Platform
I think that with enough time spent, pressure of business requirements and probably even use of Reflection API it is possible to achieve what you need.