Article View: borland.public.jbuilder.database
Article #249Re: Masterlink Problem
From: John Moore (TeamB)
Date: Mon, 19 Dec 2005 18:57
Date: Mon, 19 Dec 2005 18:57
35 lines
3089 bytes
3089 bytes
What version of JBuilder...??
Also this has been previously reported in this newsgroup, don't remember
the answer since I have never experienced the problem.
Do a search on this newsgroup..
John..
Ben wrote:
> 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));
--
=============================================
TeamB are volunteer helpers. Please DO NOT REPLY VIA EMAIL!
Post all questions and replies to this newsgroup ONLY
For papers on DataExpress, Applets, JSP, and Web Development go to:
http://www.microps.com/mps/paperFAQ.html
====================================================
Technical Details
Message-ID:
<43a70220$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mailReferences:
<43a6a05a$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 1073da,133bda468191442e X-Google-Attributes: gid1073da,public X-Google-Language: ENGLISH,ASCII-7-bit Date: Mon, 19 Dec 2005 10:57:00 -0800 From: "John Moore (TeamB)" <jbm@microps.com> User-Agent: Mozilla Thunderbird 1.0 (Macintosh/20041206) X-Accept-Language: en-us, en MIME-Version: 1.0 Newsgroups: borland.public.jbuilder.database Subject: Re: Masterlink Problem References: <43a6a05a$1@newsgroups.borland.com> In-Reply-To: <43a6a05a$1@newsgroups.borland.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 207.137.13.178 Message-ID: <43a70220$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1135018528 207.137.13.178 (19 Dec 2005 10:55:28 -0700) Lines: 35 Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail