How to check if RECORD has been modified? (OpenInsight Specific)
At 13 FEB 1998 09:27:56AM Steve C. wrote:
Is there a system variable that I can check to see if any
fields have been changed since a RECORD was read? I'm
using a REPORTER report to print a current record as
a "Print Screen" function, but I want to make sure what
is displayed is the same info as what is on disk. I need to
use REPORTER to print the record since I am printing a
BITMAP of an employee's picture with the information.
@RECORD and Get_Property(@Window,"RECORD") both change
and are equivalent if I modify the info on the screen,
yet the record on disk is different.
Thanks… Steve C.
At 13 FEB 1998 10:18AM Don Bakke wrote:
Steve,
The easiest way I know of is to duplicate the functionality of WC_OREC% (from AREV) by doing the following:
In the READ event -
call Forward_Event() Record=Get_Property(@Window, "RECORD") rv=Set_Property(@Window, "@ORIG_RECORD", Record)Then in the event that launches your reports -
Record=Get_Property(@Window, "RECORD") Orig_record=Get_Property(@Window, "@ORIG_RECORD") /* Processing that compares stuff goes here */
At 13 FEB 1998 12:08PM Steve C. wrote:
Don, your code worked great. Got one question for you.
Is it possible to view the value of @ORIG_RECORD in the
debugger? I couldn't find it anywhere, yet my variable
,i.e. Orig_record, did have the correct info.
Thanks… Steve C.
At 13 FEB 1998 04:20PM Aaron Kaplan wrote:
I'm almost positive you can go to the inspect properties option off the main debugger window and just enter it in.
At 13 FEB 1998 04:38PM Steve C. wrote:
Aaron,
I've looked and looked, still can't find the @ORIG_RECORD
anywhere in the debugger, although I have created it as
noted by Don's code.
Steve C.
At 13 FEB 1998 04:48PM Dave Pociu wrote:
In the Debugger menu go under Variables
Choose Inspect Properties there
In the new window that opens up specify the window name and type in @ORIG_RECORD in the Property field.
Click OK and voila! your @ORIG_RECORD is displayed in its own window.
This is how you can get any of the "non-standard" properties.
At 13 FEB 1998 04:59PM Steve C. wrote:
Dave, that got me there.
Thanks everybody,
Steve C.
At 16 FEB 1998 10:15AM Don Bakke wrote:
Steve,
Sorry I didn't respond myself, was away this weekend on a mini-vacation. However, as usual, you were in very capable hands.