Thanks for prompt reply!
I played around a bit with what you suggested and I think I got my head around how it works.
So far, I achieved the same result by using an “if then else” column. It basically checked if the row belonged to the signed in user and if yes it would return the row id that I would use then in a relation from the user profile row.
I would also access the user’s data in the tabs using inline lists from those relations, which was convenient but had its limitations.
I’ve now replaced almost all the “if then else” checks with row owners and roles but there are still some cases where I struggled to get the same outcome so I still had to use a relation column and a query column.
A follow up question I have is the following:
How many Row owner columns do I need per role? And, how does it work when each role creates new data?
For example, I may have a CEO, Manager 1 and Manager 2. This means that whenever the CEO creates a new row, the values will be the following:
Row Owner email = CEO’s email
Owner 1 = CEO
Owner 2 = CEO
Role = CEO
When Manager 1 creates a row the values will be:
Row Owner email = Manager 1’s email
Owner 1 = Manager 1
Owner 2 = CEO
Role = Manager 1
When Manager 2 creates a row (assuming that CEO and M1 can see their data) the values will be:
Row Owner email = Manager 2’s email
Owner 1 = Manager 2
Owner 2 = CEO
Role = Manager 2
In the scenario where Manager 2 creates a row (assuming that CEO can see their data but M1 not) the values will be:
Row Owner email = Manager 2’s email
Owner 1 = empty
Owner 2 = CEO
Role = Manager 2
For the different companies I could concat the company name after each role as suggested above, but I could also create a “Company Row Owner” column with just the company right? Or this would not work since the company will not be part of the Role column?
The example above suggests that a neat answer to “How many Row owner columns do I need per role?” is 1 column per role. Is this correct?
Also, for the question “And, how does it work when each role creates new data?” my understanding is that each user, by having in their user profile row the roles defined, they will be able to use them when creating new data. Is this right?
Finally, if my above assumptions are correct, does this mean that it is required to know all the roles from the beginning in order to create enough row owner columns in advance? I guess it would be nice to, but if new roles come up you can always add the later but it will require some extra work
This came out as a “think out loud” post but it would be nice to sense check the above and hear other opinions.