Translating with DrWatson… this can take a few seconds the first time.
This is a genuine, complex translation. DrWatson protects commands, error codes, and log output while naturally translating the surrounding text. It’s translated once and saved.
** — — source: Informix-list mailing list archive (1991-1998)
ws.leg.wa.gov!not-for-mail
From: Rick Schnabel <Schnabel_ri@leg.wa.gov>
Subject: NewEra Supertables and GetChangeFlag()
Message-ID: <31ED4EA5.4DF8@leg.wa.gov>
Date: Wed, 17 Jul 1996 13:35:49 -0700
Organization: Washington State Senate
X-Mailer: Mozilla 2.0 (WinNT; I)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Lines: 21
I am using a supertable in free form style. I wanted to have the record apply if
the user leave the supertable, so I placed the following code in the AfterRow
event for the supertable:
Variable
ok integer
If superTable.getChangeFlag() <> superTable.isOriginal then
IF superTable.acceptRow() THEN
LET ok = superTable.applyRowSQL(superTable.getRowByNumber(displayMode :
ixSuperTable::displayData))
END IF
end if
After a lot of poking around I found that superTable.getChangeFlag() always
returned a zero even if data has been changed in the record.
Two questions: First: Is the getChangeFlag supposed to change automaticly when
you change data in the supertable? Second: Is there a better way to accomplish
this?
We use strictly necessary cookies to make this site work. With your
consent we’d also use optional cookies for analytics and marketing. You can accept all,
reject all, or choose. Read our Cookie Policy.