en@frrom
4th February 2010, 16:53
In a DAL field check (has_changed) I want to check the previous value of a changed table field. I tried to do this through the predefined variable attr.previous$ but it always contains the new, changed value of the field! Does this variable not work in a DAL??!

The workaround would be a query (using alias) on the record to check the old value, but I don't find that very neat and would prefer a different way.

_Ralph_
4th February 2010, 17:03
Refers to with.old.object.values.do() you can use global variables to store the old records..

en@frrom
4th February 2010, 17:35
Thanks a lot, works like a charm. I don't even need to store my old values into variables; I just perform my check function with the table fields, since they actually contain their previous value as long as the function is called with.old.object.values.do().