Article View: borland.public.vdbase.data.sql
Article #1120Re: VDB7 - DMD Question
From: Patricia Dilmore
Date: Sat, 09 May 1998 00:00
Date: Sat, 09 May 1998 00:00
71 lines
2910 bytes
2910 bytes
Ken Chan wrote: > > As mentioned in the TFM, a rowset's canGetRow fires before the master- > detail link, so you can't rely on the masterRowset link to check the > detail rows for that parent row. You must apply the constraint yourself: > > ** END HEADER -- do not remove this line > // > // Generated on 04/29/98 > // > class claimprocsDataModule of DATAMODULE > > this.CLAIMS1 = new QUERY() > this.CLAIMS1.parent = this > with (this.CLAIMS1) > left = 3 > top = 14 > sql = 'select * from "CLAIMS.dbf"' > active = true > endwith > > with (this.CLAIMS1.rowset) > canGetRow = class::CLAIMS1_CANGETROW > > endwith > > this.PROCS1 = new QUERY() > this.PROCS1.parent = this > with (this.PROCS1) > left = 11 > top = 14 > sql = 'select * from "PROCS.dbf"' > active = true > endwith > > with (this.PROCS1.rowset) > > filter = "TOS = 'X'" > indexName = "CLAIMNO" > masterRowset = parent.parent.claims1.rowset > masterFields = "CLAIMNO" > endwith > > this.rowset = this.claims1.rowset > > function claims1_canGetRow > local lRet, procs > try > procs = this.parent.parent.procs1.rowset > if procs.setRange( this.fields[ "CLAIMNO" ].value ) > lRet = not procs.endOfSet > else > lRet = false > endif > catch ( Exception e ) > lRet = true > endtry > return lRet > > endclass > Bad news. I just got around to testing the above code. I created the dmd as above, but when I try to drag the dmd onto a form, it errors out with 'dbase has encountered an internal error'. I first tried cutting and pasting from downloaded message, then thought maybe that was the problem, so I recreated the whole thing from scratch -- same result. And I had such high hopes! Patricia
Technical Details
Message-ID:
<355414A2.6B61@Bellsouth.net>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<353D1963.4C0D@Bellsouth.net> <6hivn8$mc49@forums.borland.com> <353D5D1A.3682@Bellsouth.net> <6hl6j9$okg7@forums.borland.com> <353E7483.513D@Bellsouth.net> <6hnq54$r4g9@forums.borland.com> <353FDCA1.6480@Bellsouth.net> <6hqfn8$lk5@forums.borland.com> <35416057.4FCA@Bellsouth.net> <6i01de$55210@forums.borland.com> <3544073C.742B@Bellsouth.net> <6i2qso$8jr11@forums.borland.com> <35458149.4F0D@Bellsouth.net> <MPG.fb155b42908ef2798990a@forums.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: ff5a1,438323d64b0ab196 X-Google-Attributes: gidff5a1,public From: Patricia Dilmore <pdilmore@Bellsouth.net> Subject: Re: VDB7 - DMD Question Date: 1998/05/09 Message-ID: <355414A2.6B61@Bellsouth.net> X-Deja-AN: 351643420 Content-Transfer-Encoding: 7bit References: <353D1963.4C0D@Bellsouth.net> <6hivn8$mc49@forums.borland.com> <353D5D1A.3682@Bellsouth.net> <6hl6j9$okg7@forums.borland.com> <353E7483.513D@Bellsouth.net> <6hnq54$r4g9@forums.borland.com> <353FDCA1.6480@Bellsouth.net> <6hqfn8$lk5@forums.borland.com> <35416057.4FCA@Bellsouth.net> <6i01de$55210@forums.borland.com> <3544073C.742B@Bellsouth.net> <6i2qso$8jr11@forums.borland.com> <35458149.4F0D@Bellsouth.net> <MPG.fb155b42908ef2798990a@forums.borland.com> Mime-Version: 1.0 Reply-To: pdilmore@Bellsouth.net Content-Type: text/plain; charset=us-ascii Organization: Patricia Dilmore Newsgroups: borland.public.vdbase.data.sql