I am having a logic problem and it is my misunderstanding that would appear to be causing it.
I have a BO (Contract) with 3 PM attributes:
1 - Territory - which is a pm relationship to a Table Territories. An attribute of Territories is another pm relationship Countries.
2 - Excluded - is a pm relationship also to Countries
3 - Countries - which is a pm relationship to, you. guessed Countries.
What I am trying to achieve is a population of the Countries attribute based on all the Countries in Territory.pm_Countries that are not contained within Excluded and for this to refresh each time either Territories is updated or Excluded is updated.
The Business Rule that I had built is:
If Contract.pm_Territories WAS CHANGED OR Contract.pm_Except WAS CHANGED Then
Contract.pm_Countries=(Contract.pm_Territories.pm_Country WHERE ( NOT(Contract.pm_Territories IN Contract.pm_Except)))
But I am getting an error:
Syntax error at token "." (column 10).
Column 10 is the period between Contract.pm_Countries on the second line, my experience to date has been that when I get these sorts of errors I have approached the problem from the wrong direction and should be using a different approach. Could someone point me in the correct direction please.
Thanks in advance