I'm trying to restrict the values in the DataNavigationTaskList in the PFITask business class to only those PFIUserProfile.Actor's who are at equal or higher supervisor levels than the person accessing the form.
We want to do this so when someone is setting up their proxy, they aren't able to delegate to someone below them for approvals.
I know I need to find the supervisor level of the user on the list ,but I'm not getting the right path combination. And I think I'm mixing up PFIUserProfile, EmployeeRel and TaskEmployee and UserTaskEmployee.
This is the original path I was going down, but... I was getting errors because the business classes were unrelated.
(Employee).ActivePrimaryWorkAssignment.AssignmentIsSupervisor.Supervisor.SupervisorType.SupervisorLevel <= related.PfiUserProfile(Employee).ActivePrimaryWorkAssignment.AssignmentIsSupervisor.Supervisor.SupervisorType.SupervisorLevel)
If anyone can help straighten this out for me, I'd appreciate it. I know it's possible, or at least I think it is.
Thanks,
Laura