Do you use CHANGED Prefix

If you have questions or if you want to share your opinion about Aware IM post your message on this forum
Post Reply
BLOMASKY
Posts: 1473
Joined: Wed Sep 30, 2015 10:08 pm
Location: Ocala FL

Do you use CHANGED Prefix

Post by BLOMASKY »

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
PointsWell
Posts: 1458
Joined: Tue Jan 24, 2017 5:51 am
Location: 'Stralya

Re: Do you use CHANGED Prefix

Post by PointsWell »

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
BLOMASKY
Posts: 1473
Joined: Wed Sep 30, 2015 10:08 pm
Location: Ocala FL

Re: Do you use CHANGED Prefix

Post by BLOMASKY »

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
PointsWell
Posts: 1458
Joined: Tue Jan 24, 2017 5:51 am
Location: 'Stralya

Re: Do you use CHANGED Prefix

Post by PointsWell »

BLOMASKY wrote: Wed Dec 21, 2022 1:45 am OK, the example in the User Guide was closer to what I typed.
Are you referring to the PDF or the online? Can you post the link if it is the online one please?
BLOMASKY
Posts: 1473
Joined: Wed Sep 30, 2015 10:08 pm
Location: Ocala FL

Re: Do you use CHANGED Prefix

Post by BLOMASKY »

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
PointsWell
Posts: 1458
Joined: Tue Jan 24, 2017 5:51 am
Location: 'Stralya

Re: Do you use CHANGED Prefix

Post by PointsWell »

To your prior question
Is the 1st version "More Correct???"
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.
Post Reply