I Have a BO called Entity
EntityCode Plain Text
EntityDescription Plain Text
I have users who can have any number of Entity assigned to them and each Entity can be assigned to
many people.
Hence I have a BO called UserEntities
EntityUser RegularUser
Entity Entity
Now, when I want to Add a new UserEntities record I am displaying the RegularUser record which
has the table of UserEntities showing. I have a Add button n that table to invoke a UserEntities
Main form for create and edit of the UserEntity and the Entity is a drop down control so the user
can select an Entity.
Of course I would like the drop down NOT to show the Entities that have already been assigned
to the User
So, in the Filter of the drop down I have tried so many variations but cannot work out the right query to use.
Things likeā¦.
FIND Entity WHERE NOT(EXISTS UserEntities WHERE (UserEntities.EntityUser=ThisRegularUser AND Entity=UserEntities.Entity))
FIND Entity WHERE NOT(EXISTS UserEntities WHERE (UserEntities.EntityUser=RegularUser AND Entity IN UserEntities.Entity))
Both return all Entities in the list.
Can anyone please suggest where I might have messed up here.
Cheers,
Mark