Join The Works program to have access to the most current content, and to be able to ask questions and get answers from Revelation staff and the Revelation community

At 29 MAR 2023 09:34:02PM Robert Heard wrote:

Hello AREV32 fans,

My issue centres around the WCHANGE Common variable.

I make a change to data at a prompt in the Collector window (and confirmed that WCHANGE=1), but when I press <F9> and back to my subroutine via the "Save" hook on the Collector window, WCHANGE=0.

What happened?

The window is initiated by a program. There are various hooks in the window that make calls to a subroutine. I would have thought that the Window common would still be "active" since the call to the subroutine is explicitly done from that window.

I want to write data from the Collector window to a file with a generated key, but only want to write this if there has been a change to the data in that window. Is there some other hook to use? Another way to check for changes?

Robert.


At 03 APR 2023 09:55PM Robert Heard wrote:

Hi all,

My mistake.

Having read the utility_doc item for AREV.COMMON and for "WCHANGE", I see that this relates to a prompt, not whether there has been a change to the Window. Some confusion based on the name of this Common variable.

I have since set OREC based on the choice made from a popup of records, and then check whether data has changed between this and @RECORD (actually I only check 2 specific fields for changes).

Robert.


At 04 APR 2023 06:05AM Andrew McAuley wrote:

  • third_party_content/community/commentary/forums_works/0c0d8e1e49735948a245461cea74e02c.txt
  • Last modified: 2024/05/23 12:38
  • by 127.0.0.1