Color background of listview elements depending on referenced object

1
I have entity Team which has many-to-many relationship with Administration.Account entity to reflect team members. I render the list of teams in a list view. I would like to color background of the listview element depending on whether the current user is a member of the team. Ideally, I would like to define dynamic class using an expression like below (which does not work) if $currentObject/MaturityModel.DevOpsTeam_Account = [%CurrentUser%] then “bg-success” else “” I am sure I am not the first to face this issue. Please, help.
asked
1 answers
0

Indeed you can’t use reference sets into those conditions. Maybe use a widget like this one: https://marketplace.mendix.com/link/component/108838 

answered