Current Window Data (OpenInsight Specific)
At 15 JUN 1999 05:10:13PM Karsten Dahms wrote:
If I use the following statement
origvalue=Get_Property(@WINDOW,"ORIG_ROWVALUE")
I get the Value's contained in the window at read time. I would like to compare this to the value contained in window at save time. How do I get at that data?
Thanks for the help in advance
At 16 JUN 1999 12:00AM Don Bakke wrote:
Karsten,
The problem with the ORIG_ROWVALUE property is that it is a view of your record from the window's perspective. That's why the key id and symbolics are contained in this property. There may be a way to get the equivalent layout for the current record, but I'm not aware of any.
We prefer to use the record layout like AREV would do. So we create our own property during the READ event. After the record has been read, we get the window's RECORD property and then set a user-defined property, @ORIG_RECORD, with this value. Then during our WRITE event (or where ever it is needed) we get the @ORIG_RECORD property and the RECORD property (which now has the current data) and compare the two from there. This is very similar, if not identical, to using WC_OREC% and @RECORD in AREV.