Hide compensation components based on user role
Hello,
We have components (Configure worksheet -> Compensation components) defined on workforce compensation plan. Currently they are all displayed in summary section, but new requirement is to hide some of them based on user role.
I was able to partially achieve that using sandbox with '#{securityContext.userInRole['Role Name']}' and #{row.ComponentName == 'Bonus'} - with combination of those two conditions I can display or not specific values.
However, line with this component will be still visible (just blank).
Is there any possibility to hide the whole line? Example on screenshot below (with dummy data):
As it is:
As I can do with sandbox ("make value visible=FALSE if component name = 'Bonus' and user has specific role", applied on each column)