There have been many various permutations and combinations of this and for all the previous scenarios I have found and answer.
Except this one....
I have a BO called Employee
Each Employee can have Visible Employees which is a Multiple Reference to Employee.
So, we have two Multiple References in Employee and each is one end of the M:M reference.
Employee
pm_Employees_Visible_To_Me
pm_Employees_I_Am_Visible_To
So obviously, pm_Employees_Visible_To_Me is the matching Reference to pm_Employees_I_Am_Visible_To and Visa Vers.
Ok.... So for a Particular Employee, I want to Add Reference to Employees to populate pm_Employees_Visible_To_Me. I use
a seperate Query so as to limit the displayed Employees to only those that are NOT already a Member of pm_Employees_Visible_To_Me.
As we already know and expected, the following does not work.
FIND Employee WHERE (COUNT Employee WHERE (Employee IN ThisEmployee.pm_Employees_Visible_To_Me) = 0 )
FIND Employee WHERE (COUNT Employee WHERE (OtherEmployee IN ThisEmployee.pm_Employees_Visible_To_Me) = 0 ) also does not work.
One of the other variants of this is FIND B WHERE COUNT A WHERE (B IN A.pm_B AND A.pm_B=ThisA.pm_B)=0 which works fine except
A and B are different BOs.
Does anyone have a solution for my scenario above....
TIA.