Article View: borland.public.jbuilder.database
Article #248Masterlink Problem
From: Ben
Date: Mon, 19 Dec 2005 10:58
Date: Mon, 19 Dec 2005 10:58
16 lines
2500 bytes
2500 bytes
I set up a masterlink between two queries. The form has two tables with the top one containing the master query and the bottom one the details. What happens is that everytime I click on a row, move to another one and come back the previous row, it suddenly shows twice the amount of data. When I move two rows down and back it has three times the amount. I tried taking the tick off "Delay fetch ...", but it didn't solve the problem. (By the way, I'm using the driver recommended by Lori which solved some of the other issues I had)
Query1:
SELECT DISTINCT eqnum, jpnum, (SELECT DISTINCT description FROM equipment WHERE eqnum = PM.eqnum) as Description, (SELECT DISTINCT description FROM jobplan WHERE jpnum = PM.jpnum AND orgid = PM.orgid AND siteid = PM.siteid) as 'JP Description', orgid, siteid FROM PM WHERE PM.eqnum in (SELECT DISTINCT eqnum FROM msoEquipFMEA)
Query 2:
SELECT DISTINCT m.eqnum, m.jpnum, m.siteid, m.orgid, c.fmcid, c.fmea_ref,(SELECT DISTINCT fmea_desc FROM dbo.msoFMEA WHERE fmea_ref = c.fmea_ref) as 'FMEA Desc', c.fm_ref, (SELECT DISTINCT fm_desc FROM dbo.msoFM WHERE fm_ref = c.fm_ref AND FMEA_REF = c.FMEA_REF) as 'Fm Desc',c.ff_ref,(SELECT DISTINCT ff_desc FROM dbo.msoFF WHERE ff_ref = c.ff_ref AND FMEA_REF = c.FMEA_REF) as 'FF Desc',FMPctInspCost FROM msoJP_FM m INNER JOIN msoCFM c ON m.fmcID = c.fmcID
Masterlink:
qdsJP_CFM.setMasterLink(new com.borland.dx.dataset.MasterLinkDescriptor(
qdsPM, new String[] {"jpnum", "eqnum", "siteid", "orgid"},
new String[] {"jpnum", "eqnum", "siteid", "orgid"}, true, false, false));
Technical Details
Message-ID:
<43a6a05a$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!border1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!meganewsservers.com!feeder2.on.meganewsservers.com!news-out.newsfeeds.com!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Thread: 1073da,133bda468191442e,start X-Google-Attributes: gid1073da,public X-Google-Language: ENGLISH,ASCII-7-bit From: "Ben" <kaupt@btinternet.com> Sender: "Ben" <kaupt@btinternet.com> Reply-To: "Ben" <kaupt@btinternet.com> Subject: Masterlink Problem Newsgroups: borland.public.jbuilder.database X-User-Info: 193.63.235.72 X-Forwarded-For: 193.63.235.191 NNTP-Posting-Host: 207.105.83.66 Message-ID: <43a6a05a$1@newsgroups.borland.com> Date: 19 Dec 2005 03:58:18 -0700 X-Trace: newsgroups.borland.com 1134993498 207.105.83.66 (19 Dec 2005 03:58:18 -0700) Lines: 16 Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!border1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!meganewsservers.com!feeder2.on.meganewsservers.com!news-out.newsfeeds.com!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail