I need to see if what I'm trying to do is possible or if I need to figure out a different way.
I have a list that matches an employee to their manager via their Joomla IDs.
I have another list where an employee enters a record, that manager link from the previous list is used to create an email notification to the manager.
Ideally I'd like to make it so when a manager goes to the list they only see records they themselves have created or were created by their subordinates. Obviously a pre-filter is the best way to do this. Where I'm struggling is how this will work if I create an EVAL code that runs an SQL query and pulls out a list of IDs where the manager that's logged in matches. Ultimately a series of IDs will be returned due to one manager having multiple subordinates. How will the pre-filter handle this? Will it?
If this isn't the best way, what is an alternate?
I have a list that matches an employee to their manager via their Joomla IDs.
I have another list where an employee enters a record, that manager link from the previous list is used to create an email notification to the manager.
Ideally I'd like to make it so when a manager goes to the list they only see records they themselves have created or were created by their subordinates. Obviously a pre-filter is the best way to do this. Where I'm struggling is how this will work if I create an EVAL code that runs an SQL query and pulls out a list of IDs where the manager that's logged in matches. Ultimately a series of IDs will be returned due to one manager having multiple subordinates. How will the pre-filter handle this? Will it?
If this isn't the best way, what is an alternate?