I have a module “Employees” of all employees and there is a column “IsManager”
There is also managerEmail column in the module.
Left Block is displaying Employees with IsManager = Yes
Right Block is All Employees
How do I filter Right Block Records based on Manager selected in Left Block?
I would just have a record list with a filter of related subordinates on each employee module record, so when you view the manager’s employee module record, you see all of their subordinates.
You would create a record list of all employee records, and then filter the list based on the the manager Boolean being true, and the manager email field being equal to the employee record email address, excluding the current record
A record list has it’s own UI actions (click on a row and you open a record). What you want to do is something else: click on a row and modify a record list on the same page.
So, we can do that with charts. A chart can have a drill down option enabled which can modify data in a list. So, let me run you through it.
I recreated your modules and added some demo date. After that I created a horizontal bar chart:
The next step is to add this chart and the record list that will be showing the drill down values. I recommend to first add the record list with employees: