I am questioning the use of the Changed Prefix. The User guide says write the conditional part of a rule that checks for changes in lists like:
IF BO.REFTable WAS CHANGED and ChangedREFTable.someAttribute = 'XXX' (or ChangedREFTable.someAttribute WAS CHANGED TO "XXX')
But I write it without the ChangedPrefix. i.e.
IF BO.REFTable WAS CHANGED and REFTable.someAttribute = 'XXX'
Is the 1st version "More Correct???"
Thanks
Bruce
Do you use CHANGED Prefix
-
- Posts: 1460
- Joined: Tue Jan 24, 2017 5:51 am
- Location: 'Stralya
Re: Do you use CHANGED Prefix
I think the ChangedBO is meant for a BO list item.
For example
BO.pmListItems
ListItem has peer relationship to BO.
IF BO.pmListItems WAS CHANGED THEN DoSomething with ChangedListItem
For example
BO.pmListItems
ListItem has peer relationship to BO.
IF BO.pmListItems WAS CHANGED THEN DoSomething with ChangedListItem
Re: Do you use CHANGED Prefix
OK, the example in the User Guide was closer to what I typed. but wonder if it has to be used. If your example, I would put that rule in the child (PM Table).
Bruce
Bruce
-
- Posts: 1460
- Joined: Tue Jan 24, 2017 5:51 am
- Location: 'Stralya
Re: Do you use CHANGED Prefix
pg 117 of the user guide has an example of the CHANGED prefix. It looks like:
If Transaction FROM Account.Transactions WAS CHANGED
AND ChangedTransaction.State WAS CHANGED TO ‘Approved’
Then Account.Balance = SUM FinancialTransaction.Amount WHERE (FinancialTransaction IN Account.Transactions AND
FinancialTransaction.State = ‘Approved’)
Bruce
If Transaction FROM Account.Transactions WAS CHANGED
AND ChangedTransaction.State WAS CHANGED TO ‘Approved’
Then Account.Balance = SUM FinancialTransaction.Amount WHERE (FinancialTransaction IN Account.Transactions AND
FinancialTransaction.State = ‘Approved’)
Bruce
-
- Posts: 1460
- Joined: Tue Jan 24, 2017 5:51 am
- Location: 'Stralya
Re: Do you use CHANGED Prefix
To your prior question
I see it as six and half a dozen, either route is appropriate and neither is more or less correct than the other. I would imagine that it is a matter of which direction you came from.Is the 1st version "More Correct???"