Re: NewEra Supertables and GetChangeFlag()
Posted in 1996
Rick Schnabel <Schnabel_ri@leg.wa.gov> wrote: >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? Yes to both. The flag is set within acceptRow so you need to call that first and then check the changeFlag afterwards. David W Chan GO5 Limited david@go5.com (work) dwc@cix.compulink.co.uk (home)