using build 760 on Windows XP
the following rule of object Goal, used on an instance of Goal which has 3 ProgressGoals and the following starting values:
Goal.AccountTarget set to 200
ProgressGoal[1].Percentage set to 10
ProgressGoal[2].Percentage set to 5
ProgressGoal[3].Percentage set to 2
ProgressGoal[1].NumAccounts = 20
ProgressGoal[2].NumAccounts = 10
ProgressGoal[3].NumAccounts = 4
If I change Goal.AccountTarget the following rule is applied:
If Goal.AccountTarget WAS CHANGED Then
FIND ProgressGoal WHERE ProgressGoal IN Goal.ProgressGoals
ProgressGoal.NumAccounts=Goal.AccountTarget*ProgressGoal.Percentage/100
After application we have:
Goal.AccountTarget changed to 100
ProgressGoal[1].Percentage set to 10
ProgressGoal[2].Percentage set to 5
ProgressGoal[3].Percentage set to 2
ProgressGoal[1].NumAccounts = 10
ProgressGoal[2].NumAccounts = 10
ProgressGoal[3].NumAccounts = 10
So for some reason the value calculated for the first ProgressGoal instance is applied to all ProgressGoal instances.
Is my code wrong?
thanks,
Terry